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

Function fixed_string

ccan/ccan/tal/path/path.c:485–492  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

483
484/* This reuses str if we're to take it. */
485static char *fixed_string(const tal_t *ctx,
486 const char *str, const char *path)
487{
488 char *ret = tal_dup_arr(ctx, char, path, 0, strlen(str)+1);
489 if (ret)
490 strcpy(ret, str);
491 return ret;
492}
493
494char *path_dirname(const tal_t *ctx, const char *path)
495{

Callers 1

path_dirnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected