.\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" Text fragments inspired by Martin Schulze <joey@infodrom.org>.
.\"
-.TH ASPRINTF 3 2001-12-18 "GNU" "Linux Programmer's Manual"
+.TH ASPRINTF 3 2013-06-21 "GNU" "Linux Programmer's Manual"
.SH NAME
asprintf, vasprintf \- print to allocated string
.SH SYNOPSIS
-.B #define _GNU_SOURCE
+.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <stdio.h>
.sp
and
.BR vsprintf (3),
except that they allocate a string large enough to hold the output
-including the terminating null byte,
+including the terminating null byte (\(aq\\0\(aq),
and return a pointer to it via the first argument.
This pointer should be passed to
.BR free (3)
to release the allocated storage when it is no longer needed.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
When successful, these functions return the number of bytes printed,
just like
.BR sprintf (3).
The FreeBSD implementation sets
.I strp
to NULL on error.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR free (3),
.BR malloc (3),
-.BR printf (3),
-.BR feature_test_macros (7)
+.BR printf (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.