tutil.h - ploot - simple plotting tools HTML git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot DIR Log DIR Files DIR Refs DIR Tags DIR README --- tutil.h (405B) --- 1 #ifndef TOOL_H 2 #define TOOL_H 3 4 #include <stddef.h> 5 6 #define LEN(x) (sizeof(x) / sizeof(*x)) 7 #define MAX(x, y) ((x) > (y) ? (x) : (y)) 8 #define MIN(x, y) ((x) < (y) ? (x) : (y)) 9 #define ABS(x) ((x) < 0 ? -(x) : (x)) 10 11 /**/ 12 size_t strlcpy (char *, const char *, size_t); 13 void put3utf (long); 14 char * strsep (char **, const char *); 15 void strchomp (char *); 16 int humanize (char *, double); 17 18 #endif