X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=blobdiff_plain;f=str.h;fp=str.h;h=0f158fe972c56aaf0e62be389670ad68976c054d;hp=0000000000000000000000000000000000000000;hb=46cbddf465bd66ba1d5c4bcc780ae0d65abd7f73;hpb=b471b45977f22e3a0628befda4ad84e07fac4391 diff --git a/str.h b/str.h new file mode 100644 index 0000000..0f158fe --- /dev/null +++ b/str.h @@ -0,0 +1,20 @@ +__must_check __malloc void *dss_realloc(void *p, size_t size); +__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); +__must_check __malloc char *get_homedir(void); +int dss_atoi64(const char *str, int64_t *value); +__must_check __malloc char *dss_logname(void); +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 */ +