1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
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 .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu)
24 .TH PUTS 3 1993-04-04 "GNU" "Linux Programmer's Manual"
26 fputc, fputs, putc, putchar, puts \- output of characters and strings
31 .BI "int fputc(int " c ", FILE *" stream );
33 .BI "int fputs(const char *" "s" ", FILE *" "stream" );
35 .BI "int putc(int " c ", FILE *" stream );
37 .BI "int putchar(int " c );
39 .BI "int puts(const char *" "s" );
60 except that it may be implemented as a macro which evaluates
66 .BI "putc(" c , stdout ).
71 and a trailing newline
75 Calls to the functions described here can be mixed with each other and with
76 calls to other output functions from the
78 library for the same output stream.
80 For non-locking counterparts, see
81 .BR unlocked_stdio (3).
83 .BR fputc() , " putc() " and " putchar()"
84 return the character written as an
92 .BR puts() " and " fputs()
93 return a non-negative number on success, or
100 It is not advisable to mix calls to output functions from the
102 library with low-level calls to
104 for the file descriptor associated with the same output stream; the results
105 will be undefined and very probably not what you want.
114 .BR unlocked_stdio (3)