00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 bool safe_strtoull(const char *str, uint64_t *out);
00011 bool safe_strtoll(const char *str, int64_t *out);
00012 bool safe_strtoul(const char *str, uint32_t *out);
00013 bool safe_strtol(const char *str, int32_t *out);
00014
00015 #ifndef HAVE_HTONLL
00016 extern uint64_t htonll(uint64_t);
00017 extern uint64_t ntohll(uint64_t);
00018 #endif
00019
00020 #ifdef __GCC
00021 # define __gcc_attribute__ __attribute__
00022 #else
00023 # define __gcc_attribute__(x)
00024 #endif
00025
00032 void vperror(const char *fmt, ...)
00033 __gcc_attribute__ ((format (printf, 1, 2)));