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

Function diagdir

zic.c:1600–1604  ·  view source on GitHub ↗

For diagnostics the directory, and file name relative to that directory, respectively. A diagnostic routine can name FILENAME by outputting diagdir(FILENAME), then diagslash(FILENAME), then FILENAME. */

Source from the content-addressed store, hash-verified

1598/* For diagnostics the directory, and file name relative to that
1599 directory, respectively. A diagnostic routine can name FILENAME by
1600 outputting diagdir(FILENAME), then diagslash(FILENAME), then FILENAME. */
1601static char const *
1602diagdir(char const *filename)
1603{
1604 return *filename == '/' ? "" : directory;
1605}
1606static char const *
1607diagslash(char const *filename)

Callers 3

open_outfileFunction · 0.85
rename_destFunction · 0.85
dolinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected