[klibc] asprintf/vasprintf in stdlib.h

H. Peter Anvin hpa at zytor.com
Thu Oct 21 16:09:09 PDT 2004


Thayne Harbaugh wrote:
> Add asprintf()/vasprintf() to [stdio.h]
> 
> diff -uNr klibc-0.188/include/stdio.h udev-040/klibc-0.188/include/stdio.h
> --- klibc-0.188/include/stdio.h 2004-10-19 12:16:48.000000000 -0600
> +++ udev-040/klibc-0.188/include/stdio.h        2004-10-21 14:25:02.725984816 -0600
> @@ -120,4 +120,11 @@
> 
>  __extern int rename(const char *, const char *);
> 
> +
> +#ifdef _GNU_SOURCE
> +__extern int asprintf(char **, const char *, ...);
> +__extern int vasprintf(char **, const char *, va_list);
> +#endif /* GNU_SOURCE */
> +

Please drop the #ifdefs :)

	-hpa



More information about the klibc mailing list