Imported tab->space correction by redhat
[infodrom/manpages-de] / man3 / puts.3
1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
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.
6 .\"
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
11 .\" 
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
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Translated to German Sat May 18 18:45:00 1996 by Patrick Rother <krd@gulu.net>
25 .\"
26 .TH PUTS 3  "18. Mai 1996" "GNU" "Bibliotheksfunktionen"
27 .SH BEZEICHNUNG
28 fputc, fputs, putc, putchar, puts \- Ausgabe von Zeichen und Zeichenketten (Strings)
29 .SH ÜBERSICHT
30 .nf
31 .B #include <stdio.h>
32 .sp
33 .BI "int fputc(int " c ", FILE *" stream ");"
34 .nl
35 .BI "int fputs(const char *" "s" ", FILE *" "stream" ");"
36 .nl
37 .BI "int putc(int " c ", FILE *" stream ");"
38 .nl
39 .BI "int putchar(int " c ");"
40 .nl
41 .BI "int puts(char *" "s" ");"
42 .nl
43 .BI "int ungetc(int " c ", FILE *" stream ");"
44 .fi
45 .SH BESCHREIBUNG
46 .B fputc()
47 schreibt das Zeichen
48 .IR c ,
49 umgesetzt in ein
50 .BR "unsigned char" ,
51 in den Ausgabestrom
52 .IR stream .
53 .PP
54 .B fputs()
55 schreibt die Zeichenkette
56 .I s
57 ohne sein nachfolgendes
58 .BR '\e0'
59 in den Ausgabestrom
60 .IR stream .
61 .PP
62 .B putc()
63 entspricht
64 .B fputc()
65 außer, dass es als ein Makro implementiert den
66 .I stream
67 mehr als einmal auswertet.
68 .PP
69 .BI "putchar(" c )
70 entspricht
71 .BI "putc(" c , stdout ).
72 .PP
73 .BR puts() 
74 schreibt die Zeichenkette
75 .I s
76 und einen nachfolgenden Zeilenumbruch in die Standardausgabe
77 .IR stdout .
78 .PP
79 Aufrufe der hier beschriebenen Funktionen können untereinander und mit
80 anderen Aufrufen von Ausgabefunktionen der Bibliothek
81 .B stdio
82 für den selben Ausgabekanal gemischt werden.
83 .SH "RÜCKGABEWERTE"
84 .BR fputc() ", " putc() " und " putchar()
85 geben das als ein
86 .B unsigned char
87 geschriebene und in ein
88 .B int
89 umgesetzte Zeichen zurück, oder
90 .B EOF
91 im Fehlerfall.
92 .PP
93 .BR puts() " und " fputs()
94 geben bei Erfolg eine nichtnegative Zahl zurück, oder
95 .B EOF
96 im Fehlerfall.
97 .PP
98 .SH "KONFORM ZU"
99 ANSI - C, POSIX.1
100 .SH "BUGS"
101 Es ist nicht ratsam, Aufrufe von Ausgabefunktionen der Bibliothek
102 .B stdio
103 mit lowlevel-Aufrufen von
104 .B write() 
105 zu vermischen, wenn der Dateideskriptor denselben Ausgabekanal
106 bezeichnet.  Die Ergebnisse sind undefiniert und sehr wahrscheinlich
107 nicht die gewünschten.
108 .SH "SIEHE AUCH"
109 .BR write (2),
110 .BR fopen (3),
111 .BR fwrite (3),
112 .BR scanf (3),
113 .BR gets (3),
114 .BR fseek (3),
115 .BR error (3).
116