blob: 5007b38b120b879c6d7487a29663913ff8757a24 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <stddef.h>
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) < (b) ? (b) : (a))
#define ABS(a) ((a) > 0 ? (a) : -(a))
__attribute__((noreturn))
__attribute__((format(printf, 1, 2)))
void die(const char *fmt, ...);
size_t strdcpy(char *dst, const char *src, size_t n);
size_t strdcat(char *dst, const char *src, size_t n);
extern const char *progname;
extern int (*cleanup)(void);
|