|
|
1.1 ! root 1: ! 2: ! 3: ungetc() STDIO ungetc() ! 4: ! 5: ! 6: ! 7: ! 8: Return character to input stream ! 9: ! 10: #include <stdio.h> ! 11: iinntt uunnggeettcc (_c, _f_p) iinntt _c; FFIILLEE *_f_p; ! 12: ! 13: ungetc returns the character _c to the stream _f_p. c can then be ! 14: read by a subsequent call to ggeettcc, ggeettss, ggeettww, ssccaannff, or ffrreeaadd. ! 15: No more than one character can be pushed back into any stream at ! 16: once. A call to ffsseeeekk will nullify the effects of a previous uunn- ! 17: ggeettcc. ! 18: ! 19: ***** Example ***** ! 20: ! 21: For an example of this function, see fgetc. ! 22: ! 23: ***** See Also ***** ! 24: ! 25: fgetc(), getc(), STDIO ! 26: ! 27: ***** Diagnostics ***** ! 28: ! 29: uunnggeettcc normally returns _c. It returns EEOOFF if the character can- ! 30: not be pushed back. ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.