|
|
1.1 ! root 1: ! 2: ! 3: getw() STDIO Function getw() ! 4: ! 5: ! 6: ! 7: ! 8: Read word from file stream ! 9: ! 10: #include <stdio.h> ! 11: iinntt ggeettww(_f_p) FFIILLEE *_f_p; ! 12: ! 13: getw reads a word (an iinntt) from the file stream _f_p. ! 14: ! 15: getw differs from getc in that getw gets and returns an iinntt, ! 16: whereas getc returns either a cchhaarr promoted to an iinntt, or EOF. ! 17: To detect EOF while using ggeettww, you must use feof. ! 18: ! 19: ***** See Also ***** ! 20: ! 21: canon, getc(), STDIO ! 22: ! 23: ***** Notes ***** ! 24: ! 25: getw returns EOF on errors. ! 26: ! 27: getw assumes that the bytes of the word it receives are in the ! 28: natural byte ordering of the machine. This means that such files ! 29: might not be portable between machines. ! 30: ! 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.