O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Other Standard I/O Functions

The ANSI standard library contains over three dozen functions in the standard I/O family. Although we don't cover them all here, we will briefly describe a few more to give you a better idea of what is available. We'll list each function by its ANSI C prototype to indicate its arguments and return values. Of those functions we discuss here, all but setvbuf() are also available in pre-ANSI implementations. Reference Section V, “The Standard ANSI C Library,” lists the full ANSI C standard I/O package.

The int ungetc(int c, FILE *fp) Function

The int ungetc(int c, FILE *fp) functionpushes the character specified by c back onto the input stream. If you push a character onto the input stream, the next call to a standard ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required