diff options
Diffstat (limited to 'payloads/libpayload/libc/lib.c')
-rw-r--r-- | payloads/libpayload/libc/lib.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/lib.c b/payloads/libpayload/libc/lib.c index e7eed68eb6..3f82acf378 100644 --- a/payloads/libpayload/libc/lib.c +++ b/payloads/libpayload/libc/lib.c @@ -101,3 +101,15 @@ u8 hex2bin(u8 h) ('A' <= h && h <= 'F') ? (h - 'A' + 10) : \ ('a' <= h && h <= 'f') ? (h - 'a' + 10) : 0); } + +/** + * Enters HALT state, after printing msg + * + * @param msg message to print + */ +void fatal(const char *msg) +{ + printf("%s",msg); + halt(); +} + |