MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fixed_string

Function fixed_string

ccan/ccan/tal/path/path.c:462–469  ·  view source on GitHub ↗

This reuses str if we're to take it. */

Source from the content-addressed store, hash-verified

460
461/* This reuses str if we're to take it. */
462static char *fixed_string(const tal_t *ctx,
463 const char *str, const char *path)
464{
465 char *ret = tal_dup_arr(ctx, char, path, 0, strlen(str)+1);
466 if (ret)
467 strcpy(ret, str);
468 return ret;
469}
470
471char *path_dirname(const tal_t *ctx, const char *path)
472{

Callers 1

path_dirnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected