Standard I/O Functions

+1 Devin McElheran · February 10, 2015
I'm reading C Primer Plus right now, I highly recommend it, but there are some points where the book lacking in explanation. 

I'm looking at unget(), fflush(), and setvbuf(), could someone explain to me what they would be used for? Maybe some pseudo code examples, or real code if you're up to it.

This book explains the functions well, but not how you might use them, and that is what's preventing me from grasping the function of these functions. It's been the case for a lot of the functions mentioned in the book. I'd really like to learn more about I/O and file I/O, but this book is pretty dry in terms of enthusiasm and examples.

Post a Reply


Oldest  Newest  Rating
0 Devin McElheran · February 12, 2015
Yes, I'm sorry, I was wondering how these functions were typically applied to real scenarios. It's kind of like saying you can use a stone to sharpen a stick, but I don't know what to do with my sharpened stick afterward.
0 Devin McElheran · February 11, 2015
I have the fifth edition, I guess not much changes from one to the other, mine's 2005 copyright.
0 J show · February 10, 2015
I have the sixth edition and was kinda wondering the same thing? 
  • 1



One of the most popular languages of all time.

Bucky Roberts Administrator