[Apue2nd Study Notes] ch5. standard I/O Library

Source: Internet
Author: User

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 messaging SS 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.