MCPcopy Create free account
hub / github.com/eggert/tz / diagslash

Function diagslash

zic.c:1605–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1603{
1604 return *filename == '/' ? "" : directory;
1605}
1606static char const *
1607diagslash(char const *filename)
1608{
1609 return &"/"[*filename == '/' || directory_ends_in_slash];
1610}
1611
1612/* Prepare to write to the file *OUTNAME, using *TEMPNAME to store the

Callers 3

open_outfileFunction · 0.85
rename_destFunction · 0.85
dolinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected