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

Function errx

ccan/ccan/err/err.c:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void NORETURN errx(int eval, const char *fmt, ...)
32{
33 va_list ap;
34
35 fprintf(stderr, "%s: ", progname);
36 va_start(ap, fmt);
37 vfprintf(stderr, fmt, ap);
38 va_end(ap);
39 fprintf(stderr, "\n");
40 exit(eval);
41}
42
43void warn(const char *fmt, ...)
44{

Callers 15

mainFunction · 0.85
get_hsm_secretFunction · 0.85
get_encrypted_hsm_secretFunction · 0.85
hsm_secret_is_encryptedFunction · 0.85
decrypt_hsmFunction · 0.85
encrypt_hsmFunction · 0.85
dump_commitments_infosFunction · 0.85
guess_to_remoteFunction · 0.85
get_wordsFunction · 0.85
get_mnemonicFunction · 0.85
read_mnemonicFunction · 0.85
generate_hsmFunction · 0.85

Calls

no outgoing calls

Tested by 10

test_block_rangeFunction · 0.68
const_time_testFunction · 0.68
nonconst_time_testFunction · 0.68
mainFunction · 0.68
tx_must_be_eqFunction · 0.68
txs_must_be_eqFunction · 0.68
tx_must_be_eqFunction · 0.68
mainFunction · 0.68
test_subdaemonsFunction · 0.68
test_b11Function · 0.68