|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: g
Length: 2778 (0xada)
Names: »getc.3s«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./bsd/usr/man/cat3/getc.3s«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 ┆ u_ a_ l Library Funct┆ 0x040…060 69 6f 6e 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 63 28 33 73 29 0a 0a 0a 0a ┆ions getc(3s) ┆ 0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x080…0a0 20 20 67 65 74 63 2c 20 67 65 74 63 68 61 72 2c 20 66 67 65 74 63 2c 20 67 65 74 77 20 2d 20 67 ┆ getc, getchar, fgetc, getw - g┆ 0x0a0…0c0 65 74 20 63 68 61 72 61 63 74 65 72 20 6f 72 20 77 6f 72 64 20 66 72 6f 6d 0a 20 20 20 20 20 73 ┆et character or word from s┆ 0x0c0…0e0 74 72 65 61 6d 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 ┆tream S S S SY Y Y YN N N NT T ┆ 0x0e0…100 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 ┆T TA A A AX X X X # # # #i ┆ 0x100…120 69 08 69 08 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 ┆i i in n n nc c c cl l l lu u u ┆ 0x120…140 75 64 08 64 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 74 08 ┆ud d d de e e e < < < <s s s st ┆ 0x140…160 74 08 74 08 74 64 08 64 08 64 08 64 69 08 69 08 69 08 69 6f 08 6f 08 6f 08 6f 2e 08 2e 08 2e 08 ┆t t td d d di i i io o o o. . . ┆ 0x160…180 2e 68 08 68 08 68 08 68 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e ┆.h h h h> > > > i i i in n┆ 0x180…1a0 08 6e 08 6e 74 08 74 08 74 08 74 20 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 ┆ n nt t t t g g g ge e e et t t ┆ 0x1a0…1c0 74 63 08 63 08 63 08 63 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 ┆tc c c c( ( ( (s s s st t t tr r┆ 0x1c0…1e0 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 ┆ r re e e ea a a am m m m) ) ) )┆ 0x1e0…200 0a 20 20 20 20 20 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 ┆ F F F FI I I IL L L LE E E┆ 0x200…220 08 45 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 ┆ E * * * *s s s st t t tr r r re┆ 0x220…240 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 ┆ e e ea a a am m m m; ; ; ; ┆ 0x240…260 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 67 08 67 08 67 08 67 65 ┆ i i i in n n nt t t t g g g ge┆ 0x260…280 08 65 08 65 08 65 74 08 74 08 74 08 74 63 08 63 08 63 08 63 68 08 68 08 68 08 68 61 08 61 08 61 ┆ e e et t t tc c c ch h h ha a a┆ 0x280…2a0 08 61 72 08 72 08 72 08 72 28 08 28 08 28 08 28 29 08 29 08 29 08 29 0a 0a 20 20 20 20 20 69 08 ┆ ar r r r( ( ( () ) ) ) i ┆ 0x2a0…2c0 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 66 08 66 08 66 08 66 67 08 67 08 67 ┆i i in n n nt t t t f f f fg g g┆ 0x2c0…2e0 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 63 08 63 08 63 08 63 28 08 28 08 28 08 28 73 08 ┆ ge e e et t t tc c c c( ( ( (s ┆ 0x2e0…300 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 ┆s s st t t tr r r re e e ea a a ┆ 0x300…320 61 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 0a 20 20 20 20 20 46 08 46 08 46 08 46 49 08 49 08 ┆am m m m) ) ) ) F F F FI I ┆ 0x320…340 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 2a 08 2a 08 2a 73 08 73 08 73 08 73 ┆I IL L L LE E E E * * * *s s s s┆ 0x340…360 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 ┆t t t tr r r re e e ea a a am m ┆ 0x360…380 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 ┆m m; ; ; ; i i i in n n nt┆ 0x380…3a0 08 74 08 74 08 74 20 67 08 67 08 67 08 67 65 08 65 08 65 08 65 74 08 74 08 74 08 74 77 08 77 08 ┆ t t t g g g ge e e et t t tw w ┆ 0x3a0…3c0 77 08 77 28 08 28 08 28 08 28 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 ┆w w( ( ( (s s s st t t tr r r re┆ 0x3c0…3e0 08 65 08 65 08 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 29 08 29 08 29 08 29 0a 20 20 20 20 ┆ e e ea a a am m m m) ) ) ) ┆ 0x3e0…400 20 46 08 46 08 46 08 46 49 08 49 08 49 08 49 4c 08 4c 08 4c 08 4c 45 08 45 08 45 08 45 20 2a 08 ┆ F F F FI I I IL L L LE E E E * ┆ 0x400…420 2a 08 2a 08 2a 73 08 73 08 73 08 73 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08 ┆* * *s s s st t t tr r r re e e ┆ 0x420…440 65 61 08 61 08 61 08 61 6d 08 6d 08 6d 08 6d 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 ┆ea a a am m m m; ; ; ; D D D DE┆ 0x440…460 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 ┆ E E ES S S SC C C CR R R RI I I┆ 0x460…480 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 ┆ IP P P PT T T TI I I IO O O ON ┆ 0x480…4a0 4e 08 4e 08 4e 0a 20 20 20 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 72 65 74 75 72 6e 73 20 ┆N N N _ g_ e_ t_ c returns ┆ 0x4a0…4c0 74 68 65 20 6e 65 78 74 20 63 68 61 72 61 63 74 65 72 20 66 72 6f 6d 20 74 68 65 20 6e 61 6d 65 ┆the next character from the name┆ 0x4c0…4e0 64 20 69 6e 70 75 74 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08 61 5f 08 6d 2e 0a 0a 20 20 20 ┆d input _ s_ t_ r_ e_ a_ m. ┆ 0x4e0…500 20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 28 29 20 69 73 20 69 64 65 ┆ _ g_ e_ t_ c_ h_ a_ r() is ide┆ 0x500…520 6e 74 69 63 61 6c 20 74 6f 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 28 5f 08 73 5f 08 74 5f 08 64 ┆ntical to _ g_ e_ t_ c(_ s_ t_ d┆ 0x520…540 5f 08 69 5f 08 6e 29 2e 0a 0a 20 20 20 20 20 5f 08 66 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 62 ┆_ i_ n). _ f_ g_ e_ t_ c b┆ 0x540…560 65 68 61 76 65 73 20 6c 69 6b 65 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 2c 20 62 75 74 20 69 73 ┆ehaves like _ g_ e_ t_ c, but is┆ 0x560…580 20 61 20 67 65 6e 75 69 6e 65 20 66 75 6e 63 74 69 6f 6e 2c 20 6e 6f 74 20 61 0a 20 20 20 20 20 ┆ a genuine function, not a ┆ 0x580…5a0 6d 61 63 72 6f 2e 20 20 5f 08 66 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 6d 61 79 20 62 65 20 75 ┆macro. _ f_ g_ e_ t_ c may be u┆ 0x5a0…5c0 73 65 64 20 74 6f 20 73 61 76 65 20 6f 62 6a 65 63 74 20 74 65 78 74 2e 0a 0a 20 20 20 20 20 5f ┆sed to save object text. _┆ 0x5c0…5e0 08 67 5f 08 65 5f 08 74 5f 08 77 20 72 65 74 75 72 6e 73 20 74 68 65 20 6e 65 78 74 20 77 6f 72 ┆ g_ e_ t_ w returns the next wor┆ 0x5e0…600 64 20 28 33 32 2d 62 69 74 20 69 6e 74 65 67 65 72 29 20 66 72 6f 6d 20 74 68 65 20 6e 61 6d 65 ┆d (32-bit integer) from the name┆ 0x600…620 64 0a 20 20 20 20 20 69 6e 70 75 74 20 5f 08 73 5f 08 74 5f 08 72 5f 08 65 5f 08 61 5f 08 6d 2e ┆d input _ s_ t_ r_ e_ a_ m.┆ 0x620…640 20 20 49 74 20 72 65 74 75 72 6e 73 20 74 68 65 20 63 6f 6e 73 74 61 6e 74 20 45 08 45 08 45 08 ┆ It returns the constant E E E ┆ 0x640…660 45 4f 08 4f 08 4f 08 4f 46 08 46 08 46 08 46 20 75 70 6f 6e 20 65 6e 64 2d 6f 66 2d 66 69 6c 65 ┆EO O O OF F F F upon end-of-file┆ 0x660…680 0a 20 20 20 20 20 6f 72 20 65 72 72 6f 72 2c 20 62 75 74 20 5f 08 66 5f 08 65 5f 08 6f 5f 08 66 ┆ or error, but _ f_ e_ o_ f┆ 0x680…6a0 20 61 6e 64 20 5f 08 66 5f 08 65 5f 08 72 5f 08 72 5f 08 6f 5f 08 72 28 33 29 20 73 68 6f 75 6c ┆ and _ f_ e_ r_ r_ o_ r(3) shoul┆ 0x6a0…6c0 64 20 62 65 20 75 73 65 64 20 74 6f 20 63 68 65 63 6b 20 74 68 65 0a 20 20 20 20 20 73 75 63 63 ┆d be used to check the succ┆ 0x6c0…6e0 65 73 73 20 6f 66 20 5f 08 67 5f 08 65 5f 08 74 5f 08 77 20 28 73 69 6e 63 65 20 74 68 61 74 20 ┆ess of _ g_ e_ t_ w (since that ┆ 0x6e0…700 69 73 20 61 20 67 6f 6f 64 20 69 6e 74 65 67 65 72 20 76 61 6c 75 65 29 2e 20 20 5f 08 67 5f 08 ┆is a good integer value). _ g_ ┆ 0x700…720 65 5f 08 74 5f 08 77 0a 20 20 20 20 20 61 73 73 75 6d 65 73 20 6e 6f 20 73 70 65 63 69 61 6c 20 ┆e_ t_ w assumes no special ┆ 0x720…740 61 6c 69 67 6e 6d 65 6e 74 20 69 6e 20 74 68 65 20 66 69 6c 65 2e 0a 0a 53 08 53 08 53 08 53 45 ┆alignment in the file. S S S SE┆ 0x740…760 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 ┆ E E EE E E E A A A AL L L LS S ┆ 0x760…780 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e ┆S SO O O O Library Function┆ 0x780…7a0 73 20 28 33 29 3a 20 20 66 6f 70 65 6e 2c 20 66 72 65 61 64 2c 20 67 65 74 73 2c 20 70 75 74 63 ┆s (3): fopen, fread, gets, putc┆ 0x7a0…7c0 2c 20 73 63 61 6e 66 2c 0a 20 20 20 20 20 75 6e 67 65 74 63 0a 0a 44 08 44 08 44 08 44 49 08 49 ┆, scanf, ungetc D D D DI I┆ 0x7c0…7e0 08 49 08 49 41 08 41 08 41 08 41 47 08 47 08 47 08 47 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f ┆ I IA A A AG G G GN N N NO O O O┆ 0x7e0…800 53 08 53 08 53 08 53 54 08 54 08 54 08 54 49 08 49 08 49 08 49 43 08 43 08 43 08 43 53 08 53 08 ┆S S S ST T T TI I I IC C C CS S ┆ 0x800…820 53 08 53 0a 20 20 20 20 20 54 68 65 73 65 20 66 75 6e 63 74 69 6f 6e 73 20 72 65 74 75 72 6e 20 ┆S S These functions return ┆ 0x820…840 74 68 65 20 69 6e 74 65 67 65 72 20 63 6f 6e 73 74 61 6e 74 20 45 08 45 08 45 08 45 4f 08 4f 08 ┆the integer constant E E E EO O ┆ 0x840…860 4f 08 4f 46 08 46 08 46 08 46 20 61 74 20 65 6e 64 20 6f 66 0a 20 20 20 20 20 66 69 6c 65 20 6f ┆O OF F F F at end of file o┆ 0x860…880 72 20 75 70 6f 6e 20 72 65 61 64 20 65 72 72 6f 72 2e 0a 0a 20 20 20 20 20 41 20 73 74 6f 70 20 ┆r upon read error. A stop ┆ 0x880…8a0 77 69 74 68 20 6d 65 73 73 61 67 65 2c 20 60 52 65 61 64 69 6e 67 20 62 61 64 20 66 69 6c 65 27 ┆with message, `Reading bad file'┆ 0x8a0…8c0 2c 20 6d 65 61 6e 73 20 61 6e 20 61 74 74 65 6d 70 74 0a 20 20 20 20 20 68 61 73 20 62 65 65 6e ┆, means an attempt has been┆ 0x8c0…8e0 20 6d 61 64 65 20 74 6f 20 72 65 61 64 20 66 72 6f 6d 20 61 20 73 74 72 65 61 6d 20 74 68 61 74 ┆ made to read from a stream that┆ 0x8e0…900 20 68 61 73 20 6e 6f 74 20 62 65 65 6e 20 6f 70 65 6e 65 64 0a 20 20 20 20 20 66 6f 72 20 72 65 ┆ has not been opened for re┆ 0x900…920 61 64 69 6e 67 20 62 79 20 5f 08 66 5f 08 6f 5f 08 70 5f 08 65 5f 08 6e 2e 0a 0a 4c 08 4c 08 4c ┆ading by _ f_ o_ p_ e_ n. L L L┆ 0x920…940 08 4c 49 08 49 08 49 08 49 4d 08 4d 08 4d 08 4d 49 08 49 08 49 08 49 54 08 54 08 54 08 54 41 08 ┆ LI I I IM M M MI I I IT T T TA ┆ 0x940…960 41 08 41 08 41 54 08 54 08 54 08 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 ┆A A AT T T TI I I IO O O ON N N ┆ 0x960…980 4e 53 08 53 08 53 08 53 0a 20 20 20 20 20 54 68 65 20 65 6e 64 2d 6f 66 2d 66 69 6c 65 20 72 65 ┆NS S S S The end-of-file re┆ 0x980…9a0 74 75 72 6e 20 66 72 6f 6d 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 5f 08 68 5f 08 61 5f 08 72 20 ┆turn from _ g_ e_ t_ c_ h_ a_ r ┆ 0x9a0…9c0 69 73 20 69 6e 63 6f 6d 70 61 74 69 62 6c 65 20 77 69 74 68 0a 20 20 20 20 20 74 68 61 74 20 69 ┆is incompatible with that i┆ 0x9c0…9e0 6e 20 55 4e 49 58 20 65 64 69 74 69 6f 6e 73 20 31 2d 36 2e 0a 0a 20 20 20 20 20 42 65 63 61 75 ┆n UNIX editions 1-6. Becau┆ 0x9e0…a00 73 65 20 69 74 20 69 73 20 69 6d 70 6c 65 6d 65 6e 74 65 64 20 61 73 20 61 20 6d 61 63 72 6f 2c ┆se it is implemented as a macro,┆ 0xa00…a20 20 5f 08 67 5f 08 65 5f 08 74 5f 08 63 20 74 72 65 61 74 73 20 61 20 5f 08 73 5f 08 74 5f 08 72 ┆ _ g_ e_ t_ c treats a _ s_ t_ r┆ 0xa20…a40 5f 08 65 5f 08 61 5f 08 6d 0a 20 20 20 20 20 61 72 67 75 6d 65 6e 74 20 77 69 74 68 20 73 69 64 ┆_ e_ a_ m argument with sid┆ 0xa40…a60 65 20 65 66 66 65 63 74 73 20 69 6e 63 6f 72 72 65 63 74 6c 79 2e 20 20 49 6e 20 70 61 72 74 69 ┆e effects incorrectly. In parti┆ 0xa60…a80 63 75 6c 61 72 2c 0a 20 20 20 20 20 60 67 65 74 63 28 2a 66 2b 2b 29 3b 27 20 64 6f 65 73 6e 27 ┆cular, `getc(*f++);' doesn'┆ 0xa80…aa0 74 20 77 6f 72 6b 20 73 65 6e 73 69 62 6c 79 2e 0a 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 ┆t work sensibly. March 1989 ┆ 0xaa0…ac0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f ┆ TX Pro┆ 0xac0…ada 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a ┆grammer's Reference ┆