X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=string.h;h=cdc55d2da64cef1da942543608602b0a6592af2e;hp=e5a4f9dbb4ae90b9196d6671b342879f976a5ac2;hb=3e6bba778c867a8977704b5c15e52fa18fb0d900;hpb=69b3a249fb8f0f4a01e26f7a414dbe79f480a78c 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);