[APUE2nd学习笔记]Ch5. Standard I/O Library

trrrr 2006-04-04 11:17:57
fwide: stream orientation

buffering types: full buffered, line buffered, unbuffered
most implementation: stderr is unbuffered, terminal devices are linue buffered, others are full buffered
setbuf, setvbuf: let the system choose the buffer size and auto allocate the buffer
fflush

fopen, freopen, fdopen: r, r+, w, w+, a, a+

ferror, feof, clearerr

getc, fgetc, getchar, ungetc, putc, fputc, putchar: character-at-a-time I/O
fgets, gets, fputs, puts: line-at-a-time I/O (always use fgets and fputs)
fread, fwrite: direct I/O (won't work when across different systems, p146)

ftell, fseek, rewind, fgetpos, fsetpos

printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf (p149)
%[flags][fldwidth][precision][lenmodifier]convtype

scanf, fscanf, sscanf, vscanf, vfscanf, vsscanf (p151)
%[*][fldwidth][lenmodifier]convtype

fileno

tmpnam, tmpfile, tempnam, mkstemp (don't use mkstemp)
...全文
186 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
alaiyeshi 2006-04-04
  • 打赏
  • 举报
回复
hehe
YanDong_8212 2006-04-04
  • 打赏
  • 举报
回复
keep on!

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧