iutil.h - ploot - simple plotting tools Err bitreich.org 70 hgit clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot URL:git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot bitreich.org 70 1Log /scm/ploot/log.gph bitreich.org 70 1Files /scm/ploot/files.gph bitreich.org 70 1Refs /scm/ploot/refs.gph bitreich.org 70 1Tags /scm/ploot/tag bitreich.org 70 1README /scm/ploot/file/README.md.gph bitreich.org 70 1LICENSE /scm/ploot/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 iutil.h (620B) Err bitreich.org 70 i--- Err bitreich.org 70 i 1 #ifndef TOOL_H Err bitreich.org 70 i 2 #define TOOL_H Err bitreich.org 70 i 3 Err bitreich.org 70 i 4 #include Err bitreich.org 70 i 5 #include Err bitreich.org 70 i 6 Err bitreich.org 70 i 7 #define LEN(x) (sizeof(x) / sizeof(*x)) Err bitreich.org 70 i 8 #define MAX(x, y) ((x) > (y) ? (x) : (y)) Err bitreich.org 70 i 9 #define MIN(x, y) ((x) < (y) ? (x) : (y)) Err bitreich.org 70 i 10 #define ABS(x) ((x) < 0 ? -(x) : (x)) Err bitreich.org 70 i 11 Err bitreich.org 70 i 12 extern char const *arg0; Err bitreich.org 70 i 13 Err bitreich.org 70 i 14 void err(int, char const *fmt, ...); Err bitreich.org 70 i 15 void warn(char const *fmt, ...); Err bitreich.org 70 i 16 void debug(char const *fmt, ...); Err bitreich.org 70 i 17 size_t strlcpy(char *, const char *, size_t); Err bitreich.org 70 i 18 void put3utf(long); Err bitreich.org 70 i 19 char *strsep(char **, const char *); Err bitreich.org 70 i 20 void strchomp(char *); Err bitreich.org 70 i 21 int humanize(char *, double); Err bitreich.org 70 i 22 time_t scale_time_t(time_t, time_t, int); Err bitreich.org 70 i 23 double scale_double(double, double, int); Err bitreich.org 70 i 24 Err bitreich.org 70 i 25 #endif Err bitreich.org 70 .