X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=string.h;h=a4cbdbeae8069bac5c1de41c55321faeb4f1bad1;hp=41afe8f40ad1ccf37ae4c5dae0234c3e77380470;hb=d775cef639649be13a99c4d42fb7abda69ea7d09;hpb=c418d2188c9c2c542270023d6fc3bc6cf34f8d29 diff --git a/string.h b/string.h index 41afe8f..a4cbdbe 100644 --- a/string.h +++ b/string.h @@ -3,7 +3,18 @@ __must_check __malloc void *dss_malloc(size_t size); __must_check __malloc void *dss_calloc(size_t size); __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...); __must_check __malloc char *dss_strdup(const char *s); -__printf_1_2 void make_err_msg(const char* fmt,...); __must_check __malloc char *get_homedir(void); int dss_atoi64(const char *str, int64_t *value); __must_check __malloc char *dss_logname(void); +__must_check unsigned split_args(char *args, char *** const argv_ptr, const char *delim); + + +/** \cond LLONG_MAX and LLONG_LIN might not be defined. */ +#ifndef LLONG_MAX +#define LLONG_MAX (1 << (sizeof(long) - 1)) +#endif +#ifndef LLONG_MIN +#define LLONG_MIN (-LLONG_MAX - 1LL) +#endif +/** \endcond */ +