MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / append_char_function

Function append_char_function

extern/editline/src/filecomplete.c:260–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258
259
260static const char *
261append_char_function(const char *name)
262{
263 struct stat stbuf;
264 char *expname = *name == '~' ? fn_tilde_expand(name) : NULL;
265 const char *rs = " ";
266
267 if (stat(expname ? expname : name, &stbuf) == -1)
268 goto out;
269 if (S_ISDIR(stbuf.st_mode))
270 rs = "/";
271out:
272 if (expname)
273 el_free(expname);
274 return rs;
275}
276/*
277 * returns list of completions for text given
278 * non-static for readline.

Callers

nothing calls this directly

Calls 2

fn_tilde_expandFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected