⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdio.3s

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻 3S
字号:
.TH STDIO 3S .SH NAMEstdio \- standard buffered input/output package.SH SYNOPSIS.B #include <stdio.h>.PP.SM.B FILE.B *stdin;.br.SM.B FILE.B *stdout;.br.SM.B FILE.B *stderr;.SH DESCRIPTIONThe functions described in Sections 3S constitute an efficientuser-level buffering scheme.The in-line macros.I getcand.IR  putc (3)handle characters quickly.The higher level routines.I "gets, fgets, scanf, fscanf, fread,".I "puts, fputs, printf, fprintf, fwrite"all use.I getcand.I putc;they can be freely intermixed..PPA file with associated buffering is called a.I stream,and is declared to be a pointer to a defined type.SM.B FILE..IR  Fopen (3)creates certain descriptive data for a streamand returns a pointer to designate the stream in allfurther transactions.There are three normally open streams with constantpointers declared inthe include file and associated with the standard open files:.TP 10n.BR stdinstandard input file.br.ns.TP.B stdoutstandard output file.br.ns.TP.BR stderrstandard error file.PPA constant `pointer'.SM.B NULL(0)designates no stream at all..PPAn integer constant.SM.B EOF(\-1) is returnedupon end of file or error by integer functions thatdeal with streams..PPAny routine that uses the standard input/output packagemust include the header file <stdio.h> of pertinentmacro definitions.The functions and constants mentioned in sections labeled 3Sare declared in the include fileand need no further declaration.The constants, and the following `functions' areimplemented as macros; redeclaration of these namesis perilous:.I getc,.I getchar,.I putc,.I putchar,.I feof,.I ferror,.IR fileno ..SH "SEE ALSO"open(2), close(2), read(2), write(2).SH DIAGNOSTICSThe value.SM.B EOFis returned uniformly to indicate that a.SM.B FILEpointer has not been initialized with.I fopen,input (output) has been attempted on an output (input) stream,or a.SM.B FILEpointer designates corrupt or otherwise unintelligible.SM.B FILEdata.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -