📄 getc.3
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:06:44 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def [psize 0 cheight slant sin slant cos div mul cheight 0 0] makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig { /SavedState save def userdict maxlength dict begin currentpoint transform DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix itransform moveto /ury exch def /urx exch def /lly exch def /llx exch def /y exch 72 mul resolution div def /x exch 72 mul resolution div def currentpoint /cy exch def /cx exch def /sx x urx llx sub div def /sy y ury lly sub div def sx sy scale cx sx div llx sub cy sy div ury sub translate /DefFigCTM matrix currentmatrix def /initmatrix { DefFigCTM setmatrix } def /defaultmatrix { DefFigCTM exch copy } def /initgraphics { DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap setlinewidth setmatrix DefFigCTM setmatrix } def /showpage { initgraphics } def}bind def/clipFig { currentpoint 6 2 roll newpath 4 copy 4 2 roll moveto 6 -1 roll exch lineto exch lineto exch lineto closepath clip newpath moveto}bind def/doclip { llx lly urx ury clipFig } def/endFig { end SavedState restore}bind def/globalstart { fontnum psize slant height resolution currentpoint pagesave restore gsave }bind def/globalend { grestore moveto /resolution exch def /height exch def /slant exch def /psize exch def /fontnum exch def F /pagesave save def}bind def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/Encoding-1 256 array def0 1 255 {Encoding-1 exch /.notdef put} forEncoding-1 8#301 StandardEncoding 8#101 26 getinterval putinterval %A-BEncoding-1 8#341 StandardEncoding 8#141 26 getinterval putinterval %a-bEncoding-1 8#241 StandardEncoding 8#301 16 getinterval putinterval %accentsEncoding-1 8#373 StandardEncoding 8#365 1 getinterval putinterval %dotlessiEncoding-1dup 8#41 /copyright putdup 8#42 /registered putdup 8#43 /trademark putdup 8#44 /logicalnot putdup 8#45 /Eth putdup 8#46 /eth putdup 8#47 /Thorn putdup 8#50 /thorn putdup 8#51 /brokenbar putdup 8#52 /degree putdup 8#53 /divide putdup 8#54 /multiply putdup 8#55 /minus putdup 8#56 /onehalf putdup 8#57 /onequarter putdup 8#60 /threequarters putdup 8#101 /Aacute putdup 8#102 /Acircumflex putdup 8#103 /Adieresis putdup 8#104 /Agrave putdup 8#105 /Aring putdup 8#106 /Atilde putdup 8#107 /Ccedilla putdup 8#110 /Eacute putdup 8#111 /Ecircumflex putdup 8#112 /Edieresis putdup 8#113 /Egrave putdup 8#114 /Iacute putdup 8#115 /Icircumflex putdup 8#116 /Idieresis putdup 8#117 /Igrave putdup 8#120 /Ntilde putdup 8#121 /Oacute putdup 8#122 /Ocircumflex putdup 8#123 /Odieresis putdup 8#124 /Ograve putdup 8#125 /Otilde putdup 8#126 /Scaron putdup 8#127 /Uacute putdup 8#130 /Ucircumflex putdup 8#131 /Udieresis putdup 8#132 /Ugrave putdup 8#133 /Ydieresis putdup 8#134 /Zcaron putdup 8#135 /aacute putdup 8#136 /acircumflex putdup 8#137 /adieresis putdup 8#140 /agrave putdup 8#141 /aring putdup 8#142 /atilde putdup 8#143 /ccedilla putdup 8#144 /eacute putdup 8#145 /ecircumflex putdup 8#146 /edieresis putdup 8#147 /egrave putdup 8#150 /iacute putdup 8#151 /icircumflex putdup 8#152 /idieresis putdup 8#153 /igrave putdup 8#154 /ntilde putdup 8#155 /oacute putdup 8#156 /ocircumflex putdup 8#157 /odieresis putdup 8#160 /ograve putdup 8#161 /otilde putdup 8#162 /scaron putdup 8#163 /uacute putdup 8#164 /ucircumflex putdup 8#165 /udieresis putdup 8#166 /ugrave putdup 8#167 /ydieresis putdup 8#170 /zcaron putpop/Enc-dict 30 dict defEnc-dict /tmpstr1 50 string putEnc-dict /tmpstr2 50 string putEnc-dict /tmpstr3 50 string dup (Encoding-) exch cvs pop put/AEnc-def { % arguments: the original font's name, encoding nrEnc-dict begintmpstr2 cvs /Enc-no exch def % Remember the number in a stringdup /OrigName exch def % remember the namefindfont dup maxlength dict /newdict exch def % get dictionary for new font{ exch dup /FID ne { exch newdict 3 1 roll put } { pop pop } % Ignore FID ifelse} forallnewdict begin/Encoding tmpstr3 9 Enc-no putinterval tmpstr3 0 9 Enc-no length add getinterval cvn load def % Replace encodingcurrentdict /UniqueID known{ /UniqueID UniqueID Enc-no cvi 49999 mul add def } if % Derive New UniqueIDend % newdict/FNlength OrigName tmpstr1 cvs length def % convert name, remember lengthFNlength 1 add Enc-no length add stringdup 0 OrigName tmpstr1 cvs putintervaldup FNlength (-) putintervaldup FNlength 1 add Enc-no putintervaldup 0 tmpstr1 0 FNlength getinterval putinterval % Add old namecvn dup newdict /FontName 3 2 roll put newdict definefontend % Enc-dict} def/Times-Roman 1 AEnc-def pop/R-1{/Times-Roman-1 FF}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(GETC)S992(\()S1034(3)S1092(\))S2696(Eighth)S(Edition)296 2989 A4855(GETC)S5127(\()S5169(3)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(getc,)S1298(getchar,)S1645(fgetc,)S1897(getw)S10 R-12118(-)S10 R2200(get)S2348(character)S2744(or)S2853(word)S3085(from)S3306(stream)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(#include)S1482(<stdio.h>)S1608 V1080(int)S1236(getc\(FILE)S1717(*)S10 I1767(stream)S10 B2041(\))S1728 V1080(int)S1236(getchar\(void\))S1848 V1080(int)S1236(fgetc\(FILE)S1751(*)S10 I1801(stream)S10 B2075(\))S1968 V1080(int)S1236(getw\(FILE)S1745(*)S10 I1795(stream)S10 B2069(\))S2136 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S2256 V10 B1080(Getc)S10 R1307(returns)S1612(the)S1760(next)S1958(character)S2354(from)S2575(the)S2723(named)S(input)206 3016 A10 I3247(stream)S10 R3529(.)S2424 V10 B1080(Getchar)S10 R1433(\(\))S1526(is)S1618(identical)S1990(to)S10 B2093(getc)S10 R2267(\()S10 B2301(stdin)S10 R2514(\).)S2592 V10 B1080(Fgetc)S10 R1341(behaves)S1690(like)S10 B1866(getc)S10 R2040(,)S2090(but)S2243(is)S2335(a)S2405(genuine)S2748(function,)S3133(not)S3286(a)S3356(macro;)S3661(it)S3742(may)S3940(be)S4060(used)S4269(to)S4372(save)S4576(object)S4847(text.)S2760 V10 B1080(Getw)S10 R1336(returns)S1642(the)S1791(next)S10 B1990(int)S10 R2134(from)S2356(the)S2505(named)S(input)206 2800 A10 I3033(stream)S10 R3315(.)S3392(It)S3481(returns)S3788(the)S3938(constant)S9 B4298(EOF)S10 R(upon)200 4511 A4738(end)S4910(of)S5021(\256le)S5177(or)S2880 V1080(error,)S1333(but)S1492(since)S1730(that)S1912(is)S2010(a)S(good)200 2086 A2317(integer)S2628(value,)S10 B2902(feof)S10 R3096(and)S10 B(ferror)264 3271 A10 R3535(\(3\))S(should)267 3683 A3980(be)S4105(used)S4319(to)S4427(check)S4692(the)S(success)302 4845 A5177(of)S3000 V10 B1080(getw)S10 R1282(.)S10 B1357(Getw)S10 R1612(assumes)S1972(no)S2097(special)S2402(alignment)S2829(in)S2932(the)S3080(\256le.)S3168 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S3288 V10 B(clearerr)348 1080 A10 R1428(\(3\),)S10 B1596(fopen)S10 R1837(\(3\),)S10 B2005(putc)S10 R2196(\(3\),)S10 B2364(gets)S10 R2532(\(3\),)S10 B2700(scanf)S10 R2924(\(3\),)S10 B3092(fread)S10 R3322(\(3\),)S10 B3490(ungetc)S10 R3776(\(3\).)S3456 V9 R720(D)S722(DI)S790(IA)S823(AG)S891(GN)S959(NO)S1027(OS)S1095(ST)S1147(TI)S1205(IC)S1238(CS)S1300(S)S3576 V10 R1080(These)S1348(functions)S1749(return)S2017(the)S2167(integer)S2474(constant)S9 B2834(EOF)S10 R3047(at)S3147(end)S3319(of)S3431(\256le,)S(upon)200 3613 A3841(read)S4043(error,)S4293(or)S4405(if)S4495(an)S4618(attempt)S4948(is)S5043(made)S3696 V1080(to)S1191(read)S1398(a)S1476(\256le)S1637(not)S1797(opened)S2119(by)S10 B2251(fopen)S10 R2492(.)S2574(The)S2763(end-of-\256le)S(condition)379 3221 A3632(is)S3731(remembered,)S4292(even)S4514(on)S4646(a)S4723(terminal,)S5116(and)S3816 V1080(all)S1206(subsequent)S1677(attempts)S2043(to)S2146(read)S(will)157 2345 A2527(return)S10 B2793(EOF)S10 R(until)184 3025 A3234(the)S(condition)379 3382 A3786(is)S3878(cleared)S4195(with)S10 B(clearerr)348 4399 A10 R4747(\(3\).)S3984 V9 R720(B)S722(BU)S784(UG)S852(GS)S920(S)S4104 V10 R(Because)336 1080 A1448(it)S1536(is)S1635(implemented)S2192(as)S2308(a)S2385(macro,)S10 B2694(getc)S10 R2900(treats)S3151(a)S10 I3228(stream)S10 R3534(argument)S3947(with)S4159(side)S4354(effects)S4657(incorrectly.)S5177(In)S4224 V1080(particular,)S1517(`getc\(*f++\);')S2072(doesn't)S2393(work)S2625(sensibly.)S7903 V720(Page)S941(1)S2669(\()S2711(May)S2920(14,)S(1986)200 3070 A3278(\))S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -