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

Function tal_strdup_or_null

common/utils.c:206–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206char *tal_strdup_or_null(const tal_t *ctx, const char *str)
207{
208 if (!str) {
209 /* You might have taken NULL; that's legal! Release now. */
210 taken(str);
211 return NULL;
212 }
213 return tal_strdup(ctx, str);
214}
215
216int tmpdir_mkstemp(const tal_t *ctx, const char *template TAKES, char **created)
217{

Callers 11

wallet_payment_newFunction · 0.85
rebroadcast_txsFunction · 0.85
broadcast_tx_Function · 0.85
plugin_hook_call_Function · 0.85
configvar_newFunction · 0.85
chain_to_incomeFunction · 0.85
channel_to_incomeFunction · 0.85
set_biasFunction · 0.85
set_node_biasFunction · 0.85
json_renepayFunction · 0.85
new_paymentFunction · 0.85

Calls 1

takenFunction · 0.85

Tested by

no test coverage detected