X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxvasprintf.h;h=70c6230de504f3302291d724d81b2b67b4bda71e;hb=5d0b385594bc914e6233988bfb6bc1b92a2184b5;hp=91cf54ec193caf8ab4fd47d91199d888eda2beb1;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/xvasprintf.h b/lib/xvasprintf.h index 91cf54ec1..70c6230de 100644 --- a/lib/xvasprintf.h +++ b/lib/xvasprintf.h @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 2002-2004 Free Software Foundation, Inc. + Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -34,14 +34,12 @@ # endif #endif -#ifdef __cplusplus +#ifdef __cplusplus extern "C" { #endif -/* Write formatted output to a string dynamically allocated with malloc(). - If the memory allocation succeeds, store the address of the string in - *RESULT and return the number of resulting bytes, excluding the trailing - NUL. Upon [ENOMEM] memory allocation error, call xalloc_die. +/* Write formatted output to a string dynamically allocated with malloc(), + and return it. Upon [ENOMEM] memory allocation error, call xalloc_die. On some other error - [EOVERFLOW] resulting string length is > INT_MAX, - [EINVAL] invalid format string, @@ -52,7 +50,7 @@ extern char *xasprintf (const char *format, ...) extern char *xvasprintf (const char *format, va_list args) __attribute__ ((__format__ (__printf__, 1, 0))); -#ifdef __cplusplus +#ifdef __cplusplus } #endif