comparison util.h @ 73:6792975da9a0

pasterd: start removing themes
author David Demelier <markand@malikania.fr>
date Tue, 21 Feb 2023 22:22:02 +0100
parents 1a98bc0daa49
children fe78b16c694d
comparison
equal deleted inserted replaced
72:1a98bc0daa49 73:6792975da9a0
23 #include <time.h> 23 #include <time.h>
24 24
25 #define NELEM(x) (sizeof (x) / sizeof (x)[0]) 25 #define NELEM(x) (sizeof (x) / sizeof (x)[0])
26 26
27 struct tm; 27 struct tm;
28 struct kreq;
28 29
29 extern const char *languages[]; 30 extern const char *languages[];
30 extern const size_t languagesz; 31 extern const size_t languagesz;
31 32
32 void 33 void
33 die(const char *, ...); 34 die(const char *, ...);
34 35
35 char * 36 char *
36 estrdup(const char *); 37 estrdup(const char *);
38
39 void *
40 ecalloc(size_t, size_t);
37 41
38 const char * 42 const char *
39 bprintf(const char *, ...); 43 bprintf(const char *, ...);
40 44
41 const char * 45 const char *