X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=string.h;h=cdc55d2da64cef1da942543608602b0a6592af2e;hp=e5a4f9dbb4ae90b9196d6671b342879f976a5ac2;hb=b55f405f8005821ffa369b929bc0b419da62683d;hpb=1cefe6a503c74d609db4e99e689d46575a5e40fd diff --git a/string.h b/string.h index e5a4f9db..cdc55d2d 100644 --- a/string.h +++ b/string.h @@ -60,6 +60,9 @@ __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 __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);