Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
fputc(3)
Edit
PageHistory
Diff
Info
LikePages
PUTS !!!PUTS NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO BUGS SEE ALSO ---- !!NAME fputc, fputs, putc, putchar, puts - output of characters and strings !!SYNOPSIS __#include __ ''c''__, FILE *__''stream''__); int fputs(const char *__''s''__, FILE *__''stream''__); int putc(int__ ''c''__, FILE *__''stream''__); int putchar(int__ ''c''__); int puts(const char *__''s''__); __ !!DESCRIPTION __fputc()__ writes the character ''c'', cast to an __unsigned char__, to ''stream''. __fputs()__ writes the string ''s'' to ''stream'', without its trailing __'0'__. __putc()__ is equivalent to __fputc()__ except that it may be implemented as a macro which evaluates ''stream'' more than once. __putchar(__''c''__);__ is equivalent to __putc(__''c''__,__''stdout''__).__ __puts()__ writes the string ''s'' and a trailing newline to ''stdout''. Calls to the functions described here can be mixed with each other and with calls to other output functions from the __stdio__ library for the same output stream. !!RETURN VALUE __fputc()__, __putc()__ and __putchar()__ return the character written as an __unsigned char__ cast to an __int__ or __EOF__ on error. __puts()__ and __fputs()__ return a non - negative number on success, or __EOF__ on error. !!CONFORMING TO ANSI - C, POSIX.1 !!BUGS It is not advisable to mix calls to output functions from the __stdio__ library with low - level calls to __write()__ for the file descriptor associated with the same output stream; the results will be undefined and very probably not what you want. !!SEE ALSO write(2), fopen(3), fwrite(3), scanf(3), gets(3), fseek(3), ferror(3) ----
2 pages link to
fputc(3)
:
Man3f
stdio(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.