MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / compose_path

Function compose_path

tinyemu/fs_disk.c:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static char *compose_path(const char *path, const char *name)
159{
160 int path_len, name_len;
161 char *d;
162
163 path_len = strlen(path);
164 name_len = strlen(name);
165 d = malloc(path_len + 1 + name_len + 1);
166 memcpy(d, path, path_len);
167 d[path_len] = '/';
168 memcpy(d + path_len + 1, name, name_len + 1);
169 return d;
170}
171
172static int fs_attach(FSDevice *fs1, FSFile **pf,
173 FSQID *qid, uint32_t uid,

Callers 14

fs_open_wgetFunction · 0.70
fs_dump_cache_loadFunction · 0.70
filelist_load_recFunction · 0.70
scan_dirFunction · 0.70
mainFunction · 0.70
fs_walkFunction · 0.70
fs_mkdirFunction · 0.70
fs_createFunction · 0.70
fs_readdirFunction · 0.70
fs_linkFunction · 0.70
fs_symlinkFunction · 0.70
fs_mknodFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected