📄 putc.3
字号:
.\" @(#)putc.3s 6.2 (Berkeley) 11/6/85.\".TH PUTC 3 "November 6, 1985".AT 3.SH NAMEputc, putchar, fputc, putw \- put character or word on a stream.SH SYNOPSIS.nf.ft B#include <stdio.h>int putc(int \fIc\fP, FILE *\fIstream\fP)int putchar(int \fIc\fP)int fputc(int \fIc\fP, FILE *\fIstream\fP)int putw(int \fIw\fP, FILE *\fIstream\fP).ft R.fi.SH DESCRIPTION.B Putcappends the character.I cto the named output.IR stream .It returns the character written..PP.BI Putchar( c )is defined as .BI putc( c ", stdout)\fR.".PP.B Fputcbehaves like .BR putc ,but is a genuine function rather than a macro..PP.B Putwappends word (that is,.BR int ).I wto the output.IR stream .It returns the word written..B Putwneither assumes nor causes special alignment in the file..SH "SEE ALSO".BR fopen (3),.BR fclose (3),.BR getc (3),.BR puts (3),.BR printf (3),.BR fread (3)..SH DIAGNOSTICSThese functions return the constant.SM.B EOFupon error. Since this is a good integer,.BR ferror (3)should be used to detect .B putwerrors..SH BUGSBecause it is implemented as a macro,.B putctreats a.I streamargument with side effects improperly. In particular`putc(c,\ *f++);'doesn't work sensibly..PPErrors can occur long after the call to.BR putc .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -