nbtvis/lib/lib.h
2023-12-17 11:10:04 -05:00

14 lines
321 B
C

#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);
void *xzalloc(size_t amount);
void *xrealloc(void *ptr, size_t amount);