nbtvis/lib/lib.h

14 lines
321 B
C
Raw Permalink Normal View History

2023-12-14 23:08:16 +00:00
#pragma once
#include <stddef.h>
__attribute__((__noreturn__, format(printf, 1, 2)))
void error_and_die(char *format, ...);
__attribute__((__noreturn__, format(printf, 1, 2)))
void perror_and_die(char *format, ...);
void *xalloc(size_t amount);
2023-12-16 16:47:59 +00:00
void *xzalloc(size_t amount);
2023-12-14 23:08:16 +00:00
void *xrealloc(void *ptr, size_t amount);