MCPcopy Create free account
hub / github.com/ioi/isolate / cg_makepath

Function cg_makepath

cg.c:24–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#define CG_BUFSIZE 1024
23
24static void
25cg_makepath(char *buf, size_t len, const char *attr)
26{
27 int out;
28 if (attr)
29 out = snprintf(buf, len, "%s/%s/%s", cf_cg_root, cg_name, attr);
30 else
31 out = snprintf(buf, len, "%s/%s", cf_cg_root, cg_name);
32 assert((size_t) out < len);
33}
34
35static int
36cg_read(const char *attr, char *buf)

Callers 5

cg_readFunction · 0.85
cg_writeFunction · 0.85
cg_fopenFunction · 0.85
cg_createFunction · 0.85
cg_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…