/* * Include the basic standard libc headers. */ #include #include #include #include #include /* INT_MIN, MAX ... */ #include /* DBL_EPSILON */ #include #include #include #include /* O_RDONLY & co */ /* not supposed to be here, but printf debugging sorta needs it */ #include typedef unsigned char fz_u8; typedef signed char fz_s8; typedef unsigned short fz_u16; typedef signed short fz_s16; typedef unsigned long fz_u32; typedef signed long fz_s32; typedef unsigned long long fz_u64; typedef signed long long fz_s64; /* * Extras! Extras! Get them while they're hot! */ #ifdef NEED_STRLCPY extern int strlcpy(char *dst, const char *src, int n); extern int strlcat(char *dst, const char *src, int n); #endif #ifdef NEED_STRSEP extern char *strsep(char **stringp, const char *delim); #endif #ifdef NEED_GETOPT extern int getopt(int nargc, char * const * nargv, const char *ostr); extern int opterr, optind, optopt; extern char *optarg; #endif