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

Function error_to_string

extern/libtomcrypt/src/misc/error_to_string.c:67–74  ·  view source on GitHub ↗

Convert an LTC error code to ASCII @param err The error code @return A pointer to the ASCII NUL terminated string for the error or "Invalid error code." if the err code was not valid. */

Source from the content-addressed store, hash-verified

65 @return A pointer to the ASCII NUL terminated string for the error or "Invalid error code." if the err code was not valid.
66*/
67const char *error_to_string(int err)
68{
69 if (err < 0 || err >= (int)(sizeof(err_2_str)/sizeof(err_2_str[0]))) {
70 return "Invalid error code.";
71 } else {
72 return err_2_str[err];
73 }
74}
75
76
77/* ref: $Format:%D$ */

Callers 15

hkdf_testFunction · 0.85
pkcs_5_testFunction · 0.85
hmac_testFunction · 0.85
register_algsFunction · 0.85
mainFunction · 0.85
run_cmdFunction · 0.85
prng_testFunction · 0.85
mainFunction · 0.85
check_fileFunction · 0.85
mainFunction · 0.85
hash_genFunction · 0.85
cipher_genFunction · 0.85

Calls

no outgoing calls

Tested by 7

hkdf_testFunction · 0.68
pkcs_5_testFunction · 0.68
hmac_testFunction · 0.68
register_algsFunction · 0.68
mainFunction · 0.68
run_cmdFunction · 0.68
prng_testFunction · 0.68