X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=string.h;h=3efe6878da98906beeda36a8946cb2c886790c88;hb=27c08870ba172782f6406045007b6ff32a4f7329;hp=10251ae7c10b734bd906a644e0832e29b9e6bd9c;hpb=767a4a54c967bc4b80bd14d02e89fe91acd848dd;p=paraslash.git diff --git a/string.h b/string.h index 10251ae7..3efe6878 100644 --- a/string.h +++ b/string.h @@ -67,17 +67,17 @@ int for_each_line(unsigned flags, char *buf, size_t size, } \ ) -__must_check __malloc void *para_realloc(void *p, size_t size); -__must_check __malloc void *para_malloc(size_t size); -__must_check __malloc void *para_calloc(size_t size); +__must_check void *arr_realloc(void *ptr, size_t nmemb, size_t size); +__must_check void *para_realloc(void *p, size_t size); +__must_check __malloc void *alloc(size_t size); +__must_check __malloc void *zalloc(size_t size); +__must_check __malloc void *arr_alloc(size_t nmemb, size_t size); __must_check __malloc char *para_strdup(const char *s); __printf_2_0 unsigned xvasprintf(char **result, const char *fmt, va_list ap); __printf_2_3 unsigned xasprintf(char **result, const char *fmt, ...); __must_check __malloc __printf_1_2 char *make_message(const char *fmt, ...); __must_check __malloc char *para_strcat(char *a, const char *b); -__must_check __malloc char *para_dirname(const char *name); -__must_check char *para_basename(const char *name); __must_check __malloc char *para_logname(void); __must_check __malloc char *para_homedir(void); __malloc char *para_hostname(void);