1 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Translated into german by David Thamm <dthamm@bfs.de>
25 .\" sync: man-pages 1.70
27 .TH ASPRINTF 3 "25. November 2004" "GNU" "Bibliotheksfunktionen"
29 asprintf, vasprintf \- Ausgabe in allokierte Zeichenkette
31 .B #define _GNU_SOURCE
35 .BI "int asprintf(char **" strp ", const char *" fmt ", ...);"
37 .BI "int vasprintf(char **" strp ", const char *" fmt ", va_list " ap );
47 mit der Ausnahme, dass sie Speicherplatz für die Zeichenkette
48 allokieren, der ausreichend groß ist, um die Ausgabe inklusive des
49 abschließenden NUL-Zeichens aufzunehmen. Ein Zeiger darauf wird über
50 den ersten Parameter zurückgegeben. Dieser Zeiger sollte an
52 übergeben werden, um den belegten Speicherbereich wieder freizugeben,
53 wenn er nicht mehr benötigt wird.
55 Wenn erfolgreich, geben diese Funktionen die Anzahl von ausgegebenen
58 Wenn die Speicherzuteilung nicht möglich war,
59 oder andere Fehler auftreten, geben diese Funktionen -1 zurück und
64 Diese Funktionen sind GNU Erweiterungen und nicht in C oder POSIX
65 definiert. Sie sind ebenso verfügbar unter *BSD. Die
66 Implementation unter FreeBSD setzt