util.h - ics2txt - convert icalendar .ics file to plain text HTML git clone git://bitreich.org/ics2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ics2txt DIR Log DIR Files DIR Refs DIR Tags DIR README --- util.h (697B) --- 1 #ifndef UTIL_H 2 #define UTIL_H 3 4 #include <stddef.h> 5 #include <stdio.h> 6 #include <stdarg.h> 7 #include <time.h> 8 9 #define LEN(x) (sizeof (x) / sizeof *(x)) 10 11 extern char *arg0; 12 13 void err(int, char const *fmt, ...); 14 void warn(char const *fmt, ...); 15 void debug(char const *fmt, ...); 16 size_t strlcpy(char *, char const *, size_t); 17 char *strsep(char **, char const *); 18 void strchomp(char *); 19 char *strappend(char **, char const *); 20 size_t strlcat(char *, char const *, size_t); 21 long long strtonum(const char *, long long, long long, const char **); 22 size_t strsplit(char *, char **, size_t, char const *); 23 void *reallocarray(void *, size_t, size_t); 24 time_t tztime(struct tm *, char const *); 25 26 #endif