home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / thinkc30.sit / stdget_console.c.bin < prev    next >
MacBinary  |  1989-09-14  |  5.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Tue Mar 18 09:34:33 1986, modified Sun Jan 15 05:35:04 1989, creator Think C, type ASCII, 5332 bytes "stdget_console.c" default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 10 73 74 64 67 65 74 | 5f 63 6f 6e 73 6f 6c 65 |..stdget|_console|
|00000010| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 14 d4 00 | 00 00 00 9a a3 2d 79 9f |........|.....-y.|
|00000060| f6 24 58 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.$X.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 09 52 6f 75 74 | 69 6e 65 73 20 66 6f 72 |/*..Rout|ines for|
|00000090| 20 4c 69 67 68 74 73 70 | 65 65 64 43 0d 0d 09 28 | Lightsp|eedC...(|
|000000a0| 43 29 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |C) Copyr|ight 198|
|000000b0| 35 2c 20 31 39 38 36 2e | 20 54 48 49 4e 4b 20 54 |5, 1986.| THINK T|
|000000c0| 65 63 68 6e 6f 6c 6f 67 | 69 65 73 2c 20 49 6e 63 |echnolog|ies, Inc|
|000000d0| 2e 20 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |. All r|ights re|
|000000e0| 73 65 72 76 65 64 2e 0d | 0d 09 09 54 68 69 73 20 |served..|...This |
|000000f0| 66 69 6c 65 20 63 6f 6e | 74 61 69 6e 73 3a 0d 0d |file con|tains:..|
|00000100| 09 09 09 20 75 6e 67 65 | 74 63 68 2c 20 67 65 74 |... unge|tch, get|
|00000110| 63 68 2c 20 67 65 74 63 | 68 65 2e 0d 2a 2f 0d 0d |ch, getc|he..*/..|
|00000120| 23 69 66 6e 64 65 66 20 | 5f 73 74 64 69 6f 68 5f |#ifndef |_stdioh_|
|00000130| 0d 23 69 6e 63 6c 75 64 | 65 20 22 73 74 64 69 6f |.#includ|e "stdio|
|00000140| 2e 68 22 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e |.h".#end|if..#ifn|
|00000150| 64 65 66 09 5f 45 76 65 | 6e 74 4d 67 72 5f 0d 23 |def._Eve|ntMgr_.#|
|00000160| 69 6e 63 6c 75 64 65 20 | 22 45 76 65 6e 74 4d 67 |include |"EventMg|
|00000170| 72 2e 68 22 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |r.h".#en|dif..#if|
|00000180| 6e 64 65 66 09 5f 73 69 | 67 6e 61 6c 68 5f 0d 23 |ndef._si|gnalh_.#|
|00000190| 69 6e 63 6c 75 64 65 20 | 22 73 69 67 6e 61 6c 2e |include |"signal.|
|000001a0| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h".#endi|f..#ifnd|
|000001b0| 65 66 20 5f 51 75 69 63 | 6b 64 72 61 77 5f 0d 23 |ef _Quic|kdraw_.#|
|000001c0| 69 6e 63 6c 75 64 65 20 | 22 51 75 69 63 6b 44 72 |include |"QuickDr|
|000001d0| 61 77 2e 68 22 0d 23 65 | 6e 64 69 66 0d 0d 65 78 |aw.h".#e|ndif..ex|
|000001e0| 74 65 72 6e 20 42 6f 6f | 6c 65 61 6e 20 5f 69 6e |tern Boo|lean _in|
|000001f0| 69 74 65 64 3b 0d 65 78 | 74 65 72 6e 20 42 6f 6f |ited;.ex|tern Boo|
|00000200| 6c 65 61 6e 20 5f 65 63 | 68 6f 3b 0d 0d 2f 2a 20 |lean _ec|ho;../* |
|00000210| 73 69 67 6e 61 6c 20 68 | 61 6e 64 6c 69 6e 67 20 |signal h|andling |
|00000220| 68 6f 6f 6b 73 20 2a 2f | 0d 0d 69 6e 74 20 28 2a |hooks */|..int (*|
|00000230| 5f 6b 65 79 5f 69 6e 74 | 5f 73 69 67 5f 66 75 6e |_key_int|_sig_fun|
|00000240| 63 5f 29 28 29 20 3d 20 | 30 3b 0d 0d 2f 2a 20 70 |c_)() = |0;../* p|
|00000250| 64 67 20 2d 20 36 2f 31 | 38 2f 38 36 20 2d 20 63 |dg - 6/1|8/86 - c|
|00000260| 6f 6d 70 6c 65 74 65 6c | 79 20 72 65 76 69 73 65 |ompletel|y revise|
|00000270| 64 20 63 6f 6d 6d 61 6e | 64 20 63 68 61 72 61 63 |d comman|d charac|
|00000280| 74 65 72 20 68 61 6e 64 | 6c 69 6e 67 20 6f 66 20 |ter hand|ling of |
|00000290| 74 68 65 0d 09 09 09 09 | 09 66 6f 6c 6c 6f 77 69 |the.....|.followi|
|000002a0| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 20 74 6f 20 61 |ng funct|ion to a|
|000002b0| 6c 6c 6f 77 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 |llow con|trol cha|
|000002c0| 72 61 63 74 65 72 73 20 | 74 6f 20 62 65 0d 09 09 |racters |to be...|
|000002d0| 09 09 09 65 61 73 69 6c | 79 20 67 65 6e 65 72 61 |...easil|y genera|
|000002e0| 74 65 64 20 66 72 6f 6d | 20 74 68 65 20 6b 65 79 |ted from| the key|
|000002f0| 62 6f 61 72 64 20 2a 2f | 0d 0d 23 69 66 64 65 66 |board */|..#ifdef|
|00000300| 20 5f 53 54 44 5f 50 41 | 53 54 45 5f 0d 0d 2f 2a | _STD_PA|STE_../*|
|00000310| 09 49 66 20 5f 53 54 44 | 5f 50 41 53 54 45 20 69 |.If _STD|_PASTE i|
|00000320| 73 20 64 65 66 69 6e 65 | 64 20 69 6e 20 73 74 64 |s define|d in std|
|00000330| 69 6f 2e 68 2c 20 74 68 | 65 6e 20 63 68 61 72 61 |io.h, th|en chara|
|00000340| 63 74 65 72 73 20 66 72 | 6f 6d 20 74 68 65 20 63 |cters fr|om the c|
|00000350| 6c 69 70 62 6f 61 72 64 | 0d 09 63 61 6e 20 62 65 |lipboard|..can be|
|00000360| 20 70 61 73 74 65 64 20 | 69 6e 74 6f 20 74 68 65 | pasted |into the|
|00000370| 20 69 6e 70 75 74 20 73 | 74 72 65 61 6d 2c 20 75 | input s|tream, u|
|00000380| 6e 6c 69 6b 65 20 54 45 | 20 77 68 69 63 68 20 70 |nlike TE| which p|
|00000390| 61 73 74 65 73 20 69 6e | 74 6f 20 61 0d 09 77 69 |astes in|to a..wi|
|000003a0| 6e 64 6f 77 2e 20 20 54 | 68 69 73 20 61 6c 6c 6f |ndow. T|his allo|
|000003b0| 77 73 20 61 6c 6c 20 6f | 66 20 74 68 65 20 73 74 |ws all o|f the st|
|000003c0| 61 6e 64 61 72 64 20 69 | 2f 6f 20 66 75 6e 63 74 |andard i|/o funct|
|000003d0| 69 6f 6e 73 20 74 6f 20 | 62 65 20 70 61 73 73 65 |ions to |be passe|
|000003e0| 64 20 74 68 65 0d 09 63 | 6f 6e 74 65 6e 74 73 20 |d the..c|ontents |
|000003f0| 6f 66 20 74 68 65 20 70 | 61 73 74 65 20 6f 6e 20 |of the p|aste on |
|00000400| 61 20 63 68 61 72 61 63 | 74 65 72 20 62 79 20 63 |a charac|ter by c|
|00000410| 68 61 72 61 63 74 65 72 | 20 62 61 73 69 73 2e 20 |haracter| basis. |
|00000420| 20 57 68 69 6c 65 20 74 | 68 65 0d 09 70 61 73 74 | While t|he..past|
|00000430| 65 20 69 73 20 6f 63 63 | 75 72 72 69 6e 67 2c 20 |e is occ|urring, |
|00000440| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 20 69 73 20 |the keyb|oard is |
|00000450| 63 6f 6e 73 74 61 6e 74 | 6c 79 20 6d 6f 6e 69 74 |constant|ly monit|
|00000460| 6f 72 65 64 20 66 6f 72 | 20 61 0d 09 43 6f 6d 6d |ored for| a..Comm|
|00000470| 61 6e 64 2d 2e 20 77 68 | 69 63 68 20 77 69 6c 6c |and-. wh|ich will|
|00000480| 20 61 62 6f 72 74 20 74 | 68 65 20 70 61 73 74 65 | abort t|he paste|
|00000490| 2e 20 2a 2f 0d 0d 73 74 | 61 74 69 63 0d 41 62 6f |. */..st|atic.Abo|
|000004a0| 72 74 45 76 65 6e 74 28 | 29 0d 7b 0d 45 76 65 6e |rtEvent(|).{.Even|
|000004b0| 74 52 65 63 6f 72 64 20 | 65 76 65 6e 74 3b 0d 09 |tRecord |event;..|
|000004c0| 0d 09 2f 2a 20 73 77 61 | 6c 6c 6f 77 20 6b 65 79 |../* swa|llow key|
|000004d0| 20 65 76 65 6e 74 73 20 | 6c 6f 6f 6b 69 6e 67 20 | events |looking |
|000004e0| 66 6f 72 20 43 6f 6d 6d | 61 6e 64 2d 2e 20 2a 2f |for Comm|and-. */|
|000004f0| 0d 0d 09 77 68 69 6c 65 | 20 28 47 65 74 4e 65 78 |...while| (GetNex|
|00000500| 74 45 76 65 6e 74 28 6b | 65 79 44 6f 77 6e 4d 61 |tEvent(k|eyDownMa|
|00000510| 73 6b 2c 20 26 65 76 65 | 6e 74 29 29 0d 09 09 69 |sk, &eve|nt))...i|
|00000520| 66 20 28 28 63 68 61 72 | 29 20 65 76 65 6e 74 2e |f ((char|) event.|
|00000530| 6d 65 73 73 61 67 65 20 | 3d 3d 20 27 2e 27 20 26 |message |== '.' &|
|00000540| 26 20 28 65 76 65 6e 74 | 2e 6d 6f 64 69 66 69 65 |& (event|.modifie|
|00000550| 72 73 20 26 20 63 6d 64 | 4b 65 79 29 29 0d 09 09 |rs & cmd|Key))...|
|00000560| 09 72 65 74 75 72 6e 28 | 31 29 3b 0d 0d 09 72 65 |.return(|1);...re|
|00000570| 74 75 72 6e 28 30 29 3b | 0d 7d 0d 0d 73 74 61 74 |turn(0);|.}..stat|
|00000580| 69 63 20 6c 6f 6e 67 20 | 70 61 73 74 65 5f 6f 66 |ic long |paste_of|
|00000590| 66 73 65 74 20 3d 20 30 | 3b 0d 73 74 61 74 69 63 |fset = 0|;.static|
|000005a0| 20 69 6e 74 20 70 61 73 | 74 65 5f 6c 65 6e 67 74 | int pas|te_lengt|
|000005b0| 68 20 3d 20 30 3b 0d 73 | 74 61 74 69 63 20 48 61 |h = 0;.s|tatic Ha|
|000005c0| 6e 64 6c 65 20 73 63 72 | 61 70 5f 68 61 6e 64 6c |ndle scr|ap_handl|
|000005d0| 65 20 3d 20 30 3b 0d 0d | 76 6f 69 64 20 5f 73 74 |e = 0;..|void _st|
|000005e0| 64 5f 73 65 74 75 70 5f | 70 61 73 74 65 28 29 0d |d_setup_|paste().|
|000005f0| 7b 0d 6c 6f 6e 67 20 73 | 63 72 61 70 5f 6f 66 66 |{.long s|crap_off|
|00000600| 73 65 74 3b 0d 0d 09 69 | 66 20 28 73 63 72 61 70 |set;...i|f (scrap|
|00000610| 5f 68 61 6e 64 6c 65 29 | 0d 09 09 44 69 73 70 6f |_handle)|...Dispo|
|00000620| 73 48 61 6e 64 6c 65 28 | 73 63 72 61 70 5f 68 61 |sHandle(|scrap_ha|
|00000630| 6e 64 6c 65 29 3b 0d 0d | 09 73 63 72 61 70 5f 68 |ndle);..|.scrap_h|
|00000640| 61 6e 64 6c 65 20 3d 20 | 4e 65 77 48 61 6e 64 6c |andle = |NewHandl|
|00000650| 65 28 30 29 3b 0d 09 09 | 0d 09 70 61 73 74 65 5f |e(0);...|..paste_|
|00000660| 6c 65 6e 67 74 68 20 3d | 20 47 65 74 53 63 72 61 |length =| GetScra|
|00000670| 70 28 73 63 72 61 70 5f | 68 61 6e 64 6c 65 2c 20 |p(scrap_|handle, |
|00000680| 27 54 45 58 54 27 2c 20 | 26 73 63 72 61 70 5f 6f |'TEXT', |&scrap_o|
|00000690| 66 66 73 65 74 29 3b 0d | 09 70 61 73 74 65 5f 6f |ffset);.|.paste_o|
|000006a0| 66 66 73 65 74 20 3d 20 | 30 3b 0d 7d 0d 0d 23 65 |ffset = |0;.}..#e|
|000006b0| 6e 64 69 66 20 5f 53 54 | 44 5f 50 41 53 54 45 5f |ndif _ST|D_PASTE_|
|000006c0| 0d 0d 0d 23 6c 69 6e 65 | 20 30 20 5f 67 65 74 5f |...#line| 0 _get_|
|000006d0| 63 68 61 72 5f 66 72 6f | 6d 5f 6b 65 79 62 6f 61 |char_fro|m_keyboa|
|000006e0| 72 64 28 29 0d 69 6e 74 | 09 5f 67 65 74 5f 63 68 |rd().int|._get_ch|
|000006f0| 61 72 5f 66 72 6f 6d 5f | 6b 65 79 62 6f 61 72 64 |ar_from_|keyboard|
|00000700| 28 29 0d 7b 0d 72 65 67 | 69 73 74 65 72 20 69 6e |().{.reg|ister in|
|00000710| 74 20 63 3b 0d 45 76 65 | 6e 74 52 65 63 6f 72 64 |t c;.Eve|ntRecord|
|00000720| 20 74 68 65 5f 45 76 65 | 6e 74 3b 09 2f 2a 20 68 | the_Eve|nt;./* h|
|00000730| 6f 6c 64 73 20 74 68 65 | 20 65 76 65 6e 74 20 72 |olds the| event r|
|00000740| 65 63 6f 72 64 09 2a 2f | 0d 0d 09 49 6e 69 74 5f |ecord.*/|...Init_|
|00000750| 73 74 64 69 6f 28 29 3b | 0d 0d 23 69 66 64 65 66 |stdio();|..#ifdef|
|00000760| 20 5f 53 54 44 5f 50 41 | 53 54 45 5f 0d 0d 09 2f | _STD_PA|STE_.../|
|00000770| 2a 20 61 6c 6c 6f 77 20 | 67 65 74 74 69 6e 67 20 |* allow |getting |
|00000780| 6b 65 79 73 74 72 6f 6b | 65 73 20 66 72 6f 6d 20 |keystrok|es from |
|00000790| 74 68 65 20 63 6c 69 70 | 62 6f 61 72 64 20 28 73 |the clip|board (s|
|000007a0| 63 72 61 70 29 20 69 66 | 20 61 20 70 61 73 74 65 |crap) if| a paste|
|000007b0| 0d 09 09 6f 70 65 72 61 | 74 69 6f 6e 20 68 61 73 |...opera|tion has|
|000007c0| 20 62 65 65 6e 20 64 6f | 6e 65 20 2a 2f 0d 0d 64 | been do|ne */..d|
|000007d0| 6f 70 61 73 74 65 3a 0d | 09 0d 09 69 66 20 28 70 |opaste:.|...if (p|
|000007e0| 61 73 74 65 5f 6c 65 6e | 67 74 68 20 3e 20 30 29 |aste_len|gth > 0)|
|000007f0| 0d 09 7b 0d 09 09 2f 2a | 20 61 20 70 61 73 74 65 |..{.../*| a paste|
|00000800| 20 6f 70 65 72 61 74 69 | 6f 6e 20 69 73 20 69 6e | operati|on is in|
|00000810| 20 70 72 6f 67 72 65 73 | 73 2c 20 63 68 65 63 6b | progres|s, check|
|00000820| 20 66 6f 72 20 6b 65 79 | 62 6f 61 72 64 20 61 62 | for key|board ab|
|00000830| 6f 72 74 73 20 2a 2f 0d | 09 0d 09 09 69 66 20 28 |orts */.|....if (|
|00000840| 41 62 6f 72 74 45 76 65 | 6e 74 28 29 29 0d 09 09 |AbortEve|nt())...|
|00000850| 09 70 61 73 74 65 5f 6c | 65 6e 67 74 68 20 3d 20 |.paste_l|ength = |
|00000860| 30 3b 0d 09 09 65 6c 73 | 65 0d 09 09 7b 0d 09 09 |0;...els|e...{...|
|00000870| 09 63 20 3d 20 2a 20 28 | 2a 73 63 72 61 70 5f 68 |.c = * (|*scrap_h|
|00000880| 61 6e 64 6c 65 20 2b 20 | 70 61 73 74 65 5f 6f 66 |andle + |paste_of|
|00000890| 66 73 65 74 29 3b 0d 09 | 09 09 70 61 73 74 65 5f |fset);..|..paste_|
|000008a0| 6c 65 6e 67 74 68 2d 2d | 3b 0d 09 09 09 70 61 73 |length--|;....pas|
|000008b0| 74 65 5f 6f 66 66 73 65 | 74 2b 2b 3b 0d 09 09 09 |te_offse|t++;....|
|000008c0| 0d 09 09 09 2f 2a 20 63 | 68 61 6e 67 65 20 4d 61 |..../* c|hange Ma|
|000008d0| 63 20 72 65 74 75 72 6e | 20 74 6f 20 61 20 6e 65 |c return| to a ne|
|000008e0| 77 20 6c 69 6e 65 20 2a | 2f 0d 09 09 09 0d 09 09 |w line *|/.......|
|000008f0| 09 69 66 20 28 63 20 3d | 3d 20 27 5c 72 27 29 20 |.if (c =|= '\r') |
|00000900| 63 20 3d 20 27 5c 6e 27 | 3b 0d 09 09 09 0d 09 09 |c = '\n'|;.......|
|00000910| 09 72 65 74 75 72 6e 20 | 28 63 29 3b 0d 09 09 7d |.return |(c);...}|
|00000920| 0d 09 7d 0d 23 65 6e 64 | 69 66 20 5f 53 54 44 5f |..}.#end|if _STD_|
|00000930| 50 41 53 54 45 5f 0d 0d | 6e 65 78 74 65 76 65 6e |PASTE_..|nexteven|
|00000940| 74 3a 0d 0d 09 77 68 69 | 6c 65 28 74 72 75 65 29 |t:...whi|le(true)|
|00000950| 0d 09 7b 0d 09 09 77 68 | 69 6c 65 20 28 21 20 47 |..{...wh|ile (! G|
|00000960| 65 74 4e 65 78 74 45 76 | 65 6e 74 28 65 76 65 72 |etNextEv|ent(ever|
|00000970| 79 45 76 65 6e 74 2c 20 | 26 74 68 65 5f 45 76 65 |yEvent, |&the_Eve|
|00000980| 6e 74 29 29 0d 09 09 7b | 0d 09 09 09 48 69 6c 69 |nt))...{|....Hili|
|00000990| 74 65 4d 65 6e 75 28 30 | 29 3b 0d 09 09 09 53 79 |teMenu(0|);....Sy|
|000009a0| 73 74 65 6d 54 61 73 6b | 28 29 3b 0d 09 09 09 0d |stemTask|();.....|
|000009b0| 23 69 66 64 65 66 20 5f | 53 54 44 5f 50 41 53 54 |#ifdef _|STD_PAST|
|000009c0| 45 5f 0d 09 09 09 69 66 | 20 28 70 61 73 74 65 5f |E_....if| (paste_|
|000009d0| 6c 65 6e 67 74 68 20 3e | 20 30 29 20 67 6f 74 6f |length >| 0) goto|
|000009e0| 20 64 6f 70 61 73 74 65 | 3b 0d 23 65 6e 64 69 66 | dopaste|;.#endif|
|000009f0| 20 5f 53 54 44 5f 50 41 | 53 54 45 5f 0d 0d 09 09 | _STD_PA|STE_....|
|00000a00| 7d 0d 0d 23 69 66 64 65 | 66 20 5f 53 54 44 5f 50 |}..#ifde|f _STD_P|
|00000a10| 41 53 54 45 5f 0d 09 09 | 09 69 66 20 28 70 61 73 |ASTE_...|.if (pas|
|00000a20| 74 65 5f 6c 65 6e 67 74 | 68 20 3e 20 30 29 20 67 |te_lengt|h > 0) g|
|00000a30| 6f 74 6f 20 64 6f 70 61 | 73 74 65 3b 0d 23 65 6e |oto dopa|ste;.#en|
|00000a40| 64 69 66 20 5f 53 54 44 | 5f 50 41 53 54 45 5f 0d |dif _STD|_PASTE_.|
|00000a50| 0d 09 09 53 65 74 43 75 | 72 73 6f 72 28 26 61 72 |...SetCu|rsor(&ar|
|00000a60| 72 6f 77 29 3b 0d 09 09 | 0d 09 09 69 66 20 28 74 |row);...|...if (t|
|00000a70| 68 65 5f 45 76 65 6e 74 | 2e 77 68 61 74 20 3d 3d |he_Event|.what ==|
|00000a80| 20 6b 65 79 44 6f 77 6e | 20 7c 7c 20 74 68 65 5f | keyDown| || the_|
|00000a90| 45 76 65 6e 74 2e 77 68 | 61 74 20 3d 3d 20 61 75 |Event.wh|at == au|
|00000aa0| 74 6f 4b 65 79 29 0d 09 | 09 09 62 72 65 61 6b 3b |toKey)..|..break;|
|00000ab0| 0d 0d 09 09 53 74 64 45 | 76 65 6e 74 28 26 74 68 |....StdE|vent(&th|
|00000ac0| 65 5f 45 76 65 6e 74 29 | 3b 0d 09 7d 0d 0d 09 2f |e_Event)|;..}.../|
|00000ad0| 2a 20 70 69 63 6b 20 75 | 70 20 74 68 65 20 63 68 |* pick u|p the ch|
|00000ae0| 61 72 61 63 74 65 72 20 | 2a 2f 0d 09 0d 09 63 20 |aracter |*/....c |
|00000af0| 20 3d 20 28 75 6e 73 69 | 67 6e 65 64 20 63 68 61 | = (unsi|gned cha|
|00000b00| 72 29 20 74 68 65 5f 45 | 76 65 6e 74 2e 6d 65 73 |r) the_E|vent.mes|
|00000b10| 73 61 67 65 3b 0d 0d 09 | 69 66 20 28 74 68 65 5f |sage;...|if (the_|
|00000b20| 45 76 65 6e 74 2e 6d 6f | 64 69 66 69 65 72 73 20 |Event.mo|difiers |
|00000b30| 26 20 63 6d 64 4b 65 79 | 29 0d 09 7b 0d 09 0d 09 |& cmdKey|)..{....|
|00000b40| 09 2f 2a 20 69 66 20 73 | 69 67 6e 61 6c 20 6c 6f |./* if s|ignal lo|
|00000b50| 67 69 63 20 69 73 20 65 | 6e 61 62 6c 65 64 2c 20 |gic is e|nabled, |
|00000b60| 74 68 65 6e 20 63 61 6c | 6c 20 69 6e 74 65 72 72 |then cal|l interr|
|00000b70| 75 70 74 20 70 72 6f 63 | 65 64 75 72 65 20 2a 2f |upt proc|edure */|
|00000b80| 0d 09 09 0d 09 09 69 66 | 20 28 5f 6b 65 79 5f 69 |......if| (_key_i|
|00000b90| 6e 74 5f 73 69 67 5f 66 | 75 6e 63 5f 29 0d 09 09 |nt_sig_f|unc_)...|
|00000ba0| 7b 72 65 67 69 73 74 65 | 72 20 69 6e 74 20 28 2a |{registe|r int (*|
|00000bb0| 5f 74 65 6d 70 5f 6b 65 | 79 5f 69 6e 74 5f 73 69 |_temp_ke|y_int_si|
|00000bc0| 67 5f 66 75 6e 63 5f 29 | 28 29 20 3d 20 5f 6b 65 |g_func_)|() = _ke|
|00000bd0| 79 5f 69 6e 74 5f 73 69 | 67 5f 66 75 6e 63 5f 3b |y_int_si|g_func_;|
|00000be0| 0d 0d 09 09 09 73 77 69 | 74 63 68 20 28 63 29 0d |.....swi|tch (c).|
|00000bf0| 09 09 09 7b 0d 09 09 09 | 63 61 73 65 20 27 63 27 |...{....|case 'c'|
|00000c00| 3a 0d 09 09 09 63 61 73 | 65 20 27 43 27 3a 0d 09 |:....cas|e 'C':..|
|00000c10| 09 09 63 61 73 65 20 27 | 2e 27 3a 0d 09 09 09 09 |..case '|.':.....|
|00000c20| 09 09 69 66 20 28 28 6c | 6f 6e 67 29 5f 6b 65 79 |..if ((l|ong)_key|
|00000c30| 5f 69 6e 74 5f 73 69 67 | 5f 66 75 6e 63 5f 20 3d |_int_sig|_func_ =|
|00000c40| 3d 20 53 49 47 5f 44 46 | 4c 29 0d 09 09 09 09 09 |= SIG_DF|L)......|
|00000c50| 09 09 61 62 6f 72 74 28 | 29 3b 0d 09 09 09 09 09 |..abort(|);......|
|00000c60| 09 0d 09 09 09 09 09 09 | 5f 6b 65 79 5f 69 6e 74 |........|_key_int|
|00000c70| 5f 73 69 67 5f 66 75 6e | 63 5f 20 3d 20 28 76 6f |_sig_fun|c_ = (vo|
|00000c80| 69 64 2a 29 20 53 49 47 | 5f 44 46 4c 3b 0d 09 09 |id*) SIG|_DFL;...|
|00000c90| 09 09 09 09 28 2a 5f 74 | 65 6d 70 5f 6b 65 79 5f |....(*_t|emp_key_|
|00000ca0| 69 6e 74 5f 73 69 67 5f | 66 75 6e 63 5f 29 28 53 |int_sig_|func_)(S|
|00000cb0| 49 47 49 4e 54 29 3b 0d | 09 09 09 09 09 09 67 6f |IGINT);.|......go|
|00000cc0| 74 6f 20 6e 65 78 74 65 | 76 65 6e 74 3b 0d 09 09 |to nexte|vent;...|
|00000cd0| 0d 09 09 09 64 65 66 61 | 75 6c 74 3a 09 62 72 65 |....defa|ult:.bre|
|00000ce0| 61 6b 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 09 0d 09 |ak;....}|...}....|
|00000cf0| 09 73 77 69 74 63 68 20 | 28 63 29 0d 09 09 7b 0d |.switch |(c)...{.|
|00000d00| 09 09 09 2f 2a 20 63 6f | 6d 6d 61 6e 64 28 66 61 |.../* co|mmand(fa|
|00000d10| 6e 29 20 44 20 61 6e 64 | 20 63 6f 6d 6d 61 6e 64 |n) D and| command|
|00000d20| 20 5a 20 61 72 65 20 63 | 6f 6e 73 69 64 65 72 65 | Z are c|onsidere|
|00000d30| 64 20 45 4f 46 20 63 68 | 61 72 73 20 2a 2f 0d 09 |d EOF ch|ars */..|
|00000d40| 09 09 0d 09 09 63 61 73 | 65 20 27 64 27 3a 0d 09 |.....cas|e 'd':..|
|00000d50| 09 63 61 73 65 20 27 44 | 27 3a 0d 09 09 63 61 73 |.case 'D|':...cas|
|00000d60| 65 20 27 7a 27 3a 0d 09 | 09 63 61 73 65 20 27 5a |e 'z':..|.case 'Z|
|00000d70| 27 3a 0d 09 09 09 09 09 | 72 65 74 75 72 6e 20 28 |':......|return (|
|00000d80| 45 4f 46 29 3b 0d 09 09 | 0d 09 09 09 2f 2a 20 74 |EOF);...|..../* t|
|00000d90| 68 65 20 6b 65 79 20 6d | 61 79 20 74 68 65 72 65 |he key m|ay there|
|00000da0| 66 6f 72 65 20 62 65 20 | 73 6f 6d 65 20 6f 74 68 |fore be |some oth|
|00000db0| 65 72 20 63 6f 6e 74 72 | 6f 6c 20 6b 65 79 2c 20 |er contr|ol key, |
|00000dc0| 63 6f 6e 76 65 72 74 20 | 69 74 0d 09 09 09 09 69 |convert |it.....i|
|00000dd0| 66 20 69 74 20 69 73 2c | 20 6f 74 68 65 72 77 69 |f it is,| otherwi|
|00000de0| 73 65 20 69 67 6e 6f 72 | 65 20 74 68 65 20 63 6f |se ignor|e the co|
|00000df0| 6d 6d 61 6e 64 20 6d 6f | 64 69 66 69 65 72 20 2a |mmand mo|difier *|
|00000e00| 2f 0d 09 09 09 09 0d 09 | 09 09 2f 2a 20 4e 55 4c |/.......|../* NUL|
|00000e10| 4c 20 69 73 20 63 6f 6d | 6d 61 6e 64 20 73 70 61 |L is com|mand spa|
|00000e20| 63 65 2c 20 61 73 20 69 | 73 20 63 6f 6d 6d 61 6e |ce, as i|s comman|
|00000e30| 64 20 32 20 28 73 68 69 | 66 74 20 64 6f 65 73 6e |d 2 (shi|ft doesn|
|00000e40| 27 74 20 77 6f 72 6b 0d | 09 09 09 09 6f 6e 20 66 |'t work.|....on f|
|00000e50| 6f 72 20 40 20 73 69 6e | 63 65 20 65 76 65 6e 74 |or @ sin|ce event|
|00000e60| 20 6d 61 6e 61 67 65 72 | 20 74 72 61 70 73 20 63 | manager| traps c|
|00000e70| 6f 6d 6d 61 6e 64 20 73 | 68 69 66 74 20 63 6f 6d |ommand s|hift com|
|00000e80| 62 6f 73 20 2a 2f 0d 09 | 09 0d 09 09 63 61 73 65 |bos */..|....case|
|00000e90| 20 27 20 27 3a 0d 09 09 | 63 61 73 65 20 27 32 27 | ' ':...|case '2'|
|00000ea0| 3a 0d 09 09 09 09 09 63 | 20 3d 20 30 3b 0d 09 09 |:......c| = 0;...|
|00000eb0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 09 09 0d |...break|;.......|
|00000ec0| 09 09 09 2f 2a 20 6d 61 | 70 20 63 6f 6d 6d 61 6e |.../* ma|p comman|
|00000ed0| 64 20 36 20 69 6e 74 6f | 20 63 6f 6e 74 72 6f 6c |d 6 into| control|
|00000ee0| 2d 5e 20 2a 2f 0d 09 09 | 0d 09 09 63 61 73 65 20 |-^ */...|...case |
|00000ef0| 27 36 27 3a 0d 09 09 09 | 09 09 63 20 3d 20 33 30 |'6':....|..c = 30|
|00000f00| 3b 0d 09 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |;......b|reak;...|
|00000f10| 0d 09 09 09 2f 2a 20 6d | 61 70 20 63 6f 6d 6d 61 |..../* m|ap comma|
|00000f20| 6e 64 20 60 20 69 6e 74 | 6f 20 63 6f 6e 74 72 6f |nd ` int|o contro|
|00000f30| 6c 2d 7e 20 2a 2f 0d 09 | 09 0d 09 09 63 61 73 65 |l-~ */..|....case|
|00000f40| 20 27 60 27 3a 0d 09 09 | 09 09 09 63 20 3d 20 33 | '`':...|...c = 3|
|00000f50| 31 3b 0d 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 0d |1;......|break;..|
|00000f60| 09 09 09 2f 2a 20 6d 61 | 70 20 63 6f 6d 6d 61 6e |.../* ma|p comman|
|00000f70| 64 20 62 61 63 6b 73 70 | 61 63 65 20 69 6e 74 6f |d backsp|ace into|
|00000f80| 20 44 45 4c 20 2a 2f 0d | 09 0d 09 09 63 61 73 65 | DEL */.|....case|
|00000f90| 20 38 3a 0d 09 09 09 09 | 09 63 20 3d 20 30 78 37 | 8:.....|.c = 0x7|
|00000fa0| 46 3b 0d 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 09 |F;......|break;..|
|00000fb0| 09 0d 09 09 64 65 66 61 | 75 6c 74 3a 0d 09 09 09 |....defa|ult:....|
|00000fc0| 09 09 2f 2a 20 63 68 65 | 63 6b 20 66 6f 72 20 73 |../* che|ck for s|
|00000fd0| 74 61 6e 64 61 72 64 20 | 63 6f 6e 74 72 6f 6c 20 |tandard |control |
|00000fe0| 63 68 61 72 73 20 2a 2f | 0d 09 09 0d 09 09 09 09 |chars */|........|
|00000ff0| 09 69 66 20 28 28 63 20 | 3e 3d 20 27 41 27 29 20 |.if ((c |>= 'A') |
|00001000| 26 26 20 28 63 20 3c 3d | 20 27 5f 27 29 29 20 63 |&& (c <=| '_')) c|
|00001010| 2d 3d 20 28 27 41 27 20 | 2d 20 31 29 3b 0d 09 09 |-= ('A' |- 1);...|
|00001020| 09 09 09 65 6c 73 65 0d | 09 09 09 09 09 09 69 66 |...else.|......if|
|00001030| 20 28 28 63 20 3e 3d 20 | 27 61 27 29 20 26 26 20 | ((c >= |'a') && |
|00001040| 28 63 20 3c 3d 20 27 7e | 27 29 29 20 63 2d 3d 20 |(c <= '~|')) c-= |
|00001050| 28 27 61 27 20 2d 20 31 | 29 3b 0d 09 09 0d 09 09 |('a' - 1|);......|
|00001060| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 7d 0d 09 7d |...break|;...}..}|
|00001070| 0d 09 65 6c 73 65 0d 09 | 09 2f 2a 20 74 72 61 6e |..else..|./* tran|
|00001080| 73 6c 61 74 65 20 61 6e | 79 20 69 6e 70 75 74 20 |slate an|y input |
|00001090| 72 65 74 75 72 6e 20 74 | 6f 20 61 20 6e 65 77 6c |return t|o a newl|
|000010a0| 69 6e 65 2c 20 62 75 74 | 20 6e 6f 74 20 63 6f 6e |ine, but| not con|
|000010b0| 74 72 6f 6c 20 4d 21 20 | 2a 2f 0d 09 09 69 66 20 |trol M! |*/...if |
|000010c0| 28 63 20 3d 3d 20 27 5c | 72 27 29 20 63 20 3d 20 |(c == '\|r') c = |
|000010d0| 27 5c 6e 27 3b 0d 0d 09 | 72 65 74 75 72 6e 28 63 |'\n';...|return(c|
|000010e0| 29 3b 0d 7d 0d 0d 0d 23 | 6c 69 6e 65 20 30 20 75 |);.}...#|line 0 u|
|000010f0| 6e 67 65 74 63 68 28 29 | 0d 69 6e 74 20 75 6e 67 |ngetch()|.int ung|
|00001100| 65 74 63 68 28 63 29 0d | 69 6e 74 20 63 3b 0d 7b |etch(c).|int c;.{|
|00001110| 0d 09 69 66 20 28 5f 63 | 6f 6e 73 6f 6c 65 2d 3e |..if (_c|onsole->|
|00001120| 6c 6f 6f 6b 5f 66 75 6c | 6c 29 0d 09 09 72 65 74 |look_ful|l)...ret|
|00001130| 75 72 6e 28 45 4f 46 29 | 3b 0d 0d 09 5f 63 6f 6e |urn(EOF)|;..._con|
|00001140| 73 6f 6c 65 2d 3e 6c 6f | 6f 6b 5f 66 75 6c 6c 20 |sole->lo|ok_full |
|00001150| 3d 20 74 72 75 65 3b 0d | 09 5f 63 6f 6e 73 6f 6c |= true;.|._consol|
|00001160| 65 2d 3e 6c 6f 6f 6b 5f | 61 68 65 61 64 20 3d 20 |e->look_|ahead = |
|00001170| 63 3b 0d 09 72 65 74 75 | 72 6e 28 63 29 3b 0d 7d |c;..retu|rn(c);.}|
|00001180| 0d 0d 0d 0d 23 6c 69 6e | 65 20 30 20 67 65 74 63 |....#lin|e 0 getc|
|00001190| 68 5f 63 6f 6d 6d 6f 6e | 28 29 0d 73 74 61 74 69 |h_common|().stati|
|000011a0| 63 20 69 6e 74 20 67 65 | 74 63 68 5f 63 6f 6d 6d |c int ge|tch_comm|
|000011b0| 6f 6e 28 29 0d 7b 0d 09 | 69 66 20 28 5f 63 6f 6e |on().{..|if (_con|
|000011c0| 73 6f 6c 65 2d 3e 6c 6f | 6f 6b 5f 66 75 6c 6c 29 |sole->lo|ok_full)|
|000011d0| 0d 09 09 7b 0d 09 09 5f | 63 6f 6e 73 6f 6c 65 2d |...{..._|console-|
|000011e0| 3e 6c 6f 6f 6b 5f 66 75 | 6c 6c 20 3d 20 66 61 6c |>look_fu|ll = fal|
|000011f0| 73 65 3b 0d 09 09 72 65 | 74 75 72 6e 28 28 69 6e |se;...re|turn((in|
|00001200| 74 29 5f 63 6f 6e 73 6f | 6c 65 2d 3e 6c 6f 6f 6b |t)_conso|le->look|
|00001210| 5f 61 68 65 61 64 29 3b | 0d 09 7d 0d 09 72 65 74 |_ahead);|..}..ret|
|00001220| 75 72 6e 28 20 5f 67 65 | 74 5f 63 68 61 72 5f 66 |urn( _ge|t_char_f|
|00001230| 72 6f 6d 5f 6b 65 79 62 | 6f 61 72 64 28 29 20 29 |rom_keyb|oard() )|
|00001240| 3b 0d 7d 0d 0d 0d 0d 23 | 6c 69 6e 65 20 30 20 67 |;.}....#|line 0 g|
|00001250| 65 74 63 68 28 29 0d 69 | 6e 74 20 67 65 74 63 68 |etch().i|nt getch|
|00001260| 28 29 0d 7b 0d 09 72 65 | 74 75 72 6e 28 20 67 65 |().{..re|turn( ge|
|00001270| 74 63 68 5f 63 6f 6d 6d | 6f 6e 28 29 20 29 3b 0d |tch_comm|on() );.|
|00001280| 7d 0d 0d 0d 0d 23 6c 69 | 6e 65 20 30 20 67 65 74 |}....#li|ne 0 get|
|00001290| 63 68 65 28 29 0d 69 6e | 74 20 67 65 74 63 68 65 |che().in|t getche|
|000012a0| 28 29 0d 7b 0d 09 72 65 | 67 69 73 74 65 72 20 69 |().{..re|gister i|
|000012b0| 6e 74 09 63 3b 0d 0d 09 | 63 20 3d 20 67 65 74 63 |nt.c;...|c = getc|
|000012c0| 68 5f 63 6f 6d 6d 6f 6e | 28 29 3b 0d 09 69 66 20 |h_common|();..if |
|000012d0| 28 63 20 21 3d 20 45 4f | 46 29 0d 09 09 70 75 74 |(c != EO|F)...put|
|000012e0| 63 68 28 63 29 3b 0d 09 | 72 65 74 75 72 6e 28 63 |ch(c);..|return(c|
|000012f0| 29 3b 0d 7d 0d 0d 0d 0d | 23 6c 69 6e 65 20 30 20 |);.}....|#line 0 |
|00001300| 63 67 65 74 73 28 29 0d | 63 68 61 72 20 2a 63 67 |cgets().|char *cg|
|00001310| 65 74 73 28 73 29 0d 72 | 65 67 69 73 74 65 72 20 |ets(s).r|egister |
|00001320| 63 68 61 72 20 2a 73 3b | 0d 7b 0d 72 65 67 69 73 |char *s;|.{.regis|
|00001330| 74 65 72 20 69 6e 74 09 | 63 3b 0d 72 65 67 69 73 |ter int.|c;.regis|
|00001340| 74 65 72 20 63 68 61 72 | 09 2a 73 63 6f 70 79 20 |ter char|.*scopy |
|00001350| 3d 20 73 3b 0d 72 65 67 | 69 73 74 65 72 20 42 6f |= s;.reg|ister Bo|
|00001360| 6f 6c 65 61 6e 20 6f 72 | 69 67 5f 65 63 68 6f 20 |olean or|ig_echo |
|00001370| 3d 20 5f 65 63 68 6f 3b | 0d 0d 09 2f 2a 20 68 61 |= _echo;|.../* ha|
|00001380| 6e 64 6c 65 20 6f 75 72 | 20 6f 77 6e 20 65 63 68 |ndle our| own ech|
|00001390| 6f 69 6e 67 20 2a 2f 0d | 0d 09 49 6e 69 74 5f 73 |oing */.|..Init_s|
|000013a0| 74 64 69 6f 28 29 3b 0d | 09 0d 09 2f 2a 6c 6f 6f |tdio();.|.../*loo|
|000013b0| 70 20 75 6e 74 69 6c 20 | 45 4f 46 20 6f 72 20 5c |p until |EOF or \|
|000013c0| 6e 09 2a 2f 0d 0d 09 77 | 68 69 6c 65 20 28 28 63 |n.*/...w|hile ((c|
|000013d0| 3d 67 65 74 63 68 5f 63 | 6f 6d 6d 6f 6e 28 29 29 |=getch_c|ommon())|
|000013e0| 21 3d 20 45 4f 46 29 0d | 09 7b 0d 09 09 69 66 20 |!= EOF).|.{...if |
|000013f0| 28 63 20 3d 3d 20 27 5c | 62 27 29 0d 09 09 7b 0d |(c == '\|b')...{.|
|00001400| 09 09 09 69 66 20 28 73 | 63 6f 70 79 20 21 3d 20 |...if (s|copy != |
|00001410| 73 29 0d 09 09 09 7b 0d | 09 09 09 09 69 66 20 28 |s)....{.|....if (|
|00001420| 5f 65 63 68 6f 29 0d 09 | 09 09 09 7b 0d 09 09 09 |_echo)..|...{....|
|00001430| 09 09 70 75 74 63 68 28 | 27 5c 62 27 29 3b 0d 09 |..putch(|'\b');..|
|00001440| 09 09 09 09 70 75 74 63 | 68 28 27 20 27 29 3b 0d |....putc|h(' ');.|
|00001450| 09 09 09 09 09 70 75 74 | 63 68 28 27 5c 62 27 29 |.....put|ch('\b')|
|00001460| 3b 0d 09 09 09 09 7d 0d | 0d 09 09 09 09 2a 2d 2d |;.....}.|.....*--|
|00001470| 73 63 6f 70 79 20 3d 20 | 27 20 27 3b 0d 09 09 09 |scopy = |' ';....|
|00001480| 7d 0d 09 09 7d 0d 09 09 | 65 6c 73 65 0d 09 09 7b |}...}...|else...{|
|00001490| 0d 09 09 09 69 66 20 28 | 5f 65 63 68 6f 29 20 70 |....if (|_echo) p|
|000014a0| 75 74 63 68 28 63 29 3b | 0d 09 09 09 09 0d 09 09 |utch(c);|........|
|000014b0| 09 69 66 20 28 28 2a 73 | 63 6f 70 79 2b 2b 20 3d |.if ((*s|copy++ =|
|000014c0| 20 63 29 20 3d 3d 20 27 | 5c 6e 27 29 0d 09 09 09 | c) == '|\n')....|
|000014d0| 7b 0d 09 09 09 09 73 63 | 6f 70 79 2d 2d 3b 0d 09 |{.....sc|opy--;..|
|000014e0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 7d 09 09 |...break|;....}..|
|000014f0| 0d 09 09 7d 0d 09 7d 0d | 0d 09 69 66 20 28 28 73 |...}..}.|..if ((s|
|00001500| 63 6f 70 79 20 21 3d 20 | 73 29 20 7c 7c 20 28 63 |copy != |s) || (c|
|00001510| 20 3d 3d 20 27 5c 6e 27 | 29 29 0d 09 7b 0d 09 09 | == '\n'|))..{...|
|00001520| 2a 73 63 6f 70 79 20 3d | 20 27 5c 30 27 3b 0d 09 |*scopy =| '\0';..|
|00001530| 7d 0d 09 65 6c 73 65 0d | 09 09 73 20 3d 20 4e 55 |}..else.|..s = NU|
|00001540| 4c 4c 3b 0d 0d 09 72 65 | 74 75 72 6e 28 73 29 3b |LL;...re|turn(s);|
|00001550| 0d 7d 0d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+