home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / string.c.bin < prev    next >
MacBinary  |  1990-05-23  |  1.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: string.c.bin

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 Text File (text/txt) fallback Supported
100% file MacBinary, Thu May 18 12:32:24 1989, modified Fri Jan 26 14:44:33 1990, creator Think C, type ASCII, 938 bytes "string.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 08 73 74 72 69 6e 67 | 2e 63 00 00 00 00 00 00 |..string|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 03 aa 00 | 00 00 00 a0 98 a0 98 a1 |........|........|
|00000060| e6 59 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Y!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 0d 20 2a 09 73 74 72 | 69 6e 67 2e 63 0d 20 2a |*. *.str|ing.c. *|
|000000e0| 0d 20 2a 09 53 74 72 69 | 6e 67 20 48 61 6e 64 6c |. *.Stri|ng Handl|
|000000f0| 69 6e 67 20 50 61 63 6b | 61 67 65 0d 20 2a 0d 20 |ing Pack|age. *. |
|00000100| 2a 09 57 72 69 74 74 65 | 6e 20 62 79 20 50 61 63 |*.Writte|n by Pac|
|00000110| 6f 20 58 61 6e 64 65 72 | 20 4e 61 74 68 61 6e 0d |o Xander| Nathan.|
|00000120| 20 2a 09 a9 31 39 39 30 | 2c 20 4d 6f 74 6f 72 6f | *..1990|, Motoro|
|00000130| 6c 61 20 49 6e 63 2e 20 | 20 50 75 62 6c 69 63 20 |la Inc. | Public |
|00000140| 64 6f 6d 61 69 6e 20 73 | 6f 75 72 63 65 20 63 6f |domain s|ource co|
|00000150| 64 65 2e 0d 20 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |de.. ***|********|
|00000160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2f 0d 0d | 23 69 6e 63 6c 75 64 65 |*****/..|#include|
|000001b0| 20 22 61 70 70 6c 69 63 | 2e 68 22 0d 23 69 6e 63 | "applic|.h".#inc|
|000001c0| 6c 75 64 65 20 22 73 74 | 72 69 6e 67 2e 68 22 0d |lude "st|ring.h".|
|000001d0| 0d 0d 2f 2a 20 43 6f 70 | 79 20 61 20 70 61 73 63 |../* Cop|y a pasc|
|000001e0| 61 6c 20 73 74 72 69 6e | 67 20 66 72 6f 6d 20 70 |al strin|g from p|
|000001f0| 31 20 74 6f 20 70 32 0d | 20 2a 2f 0d 76 6f 69 64 |1 to p2.| */.void|
|00000200| 0d 53 74 72 50 43 70 79 | 20 28 70 32 2c 20 70 31 |.StrPCpy| (p2, p1|
|00000210| 29 0d 09 72 65 67 69 73 | 74 65 72 20 53 74 72 69 |)..regis|ter Stri|
|00000220| 6e 67 50 74 72 20 70 31 | 2c 20 70 32 3b 0d 7b 0d |ngPtr p1|, p2;.{.|
|00000230| 09 69 66 20 28 70 31 20 | 26 26 20 70 32 29 0d 09 |.if (p1 |&& p2)..|
|00000240| 09 42 6c 6f 63 6b 4d 6f | 76 65 28 70 31 2c 20 70 |.BlockMo|ve(p1, p|
|00000250| 32 2c 20 28 6c 6f 6e 67 | 29 20 28 2a 70 31 20 2b |2, (long|) (*p1 +|
|00000260| 20 31 29 29 3b 0d 7d 0d | 0d 0d 2f 2a 20 47 65 74 | 1));.}.|../* Get|
|00000270| 20 6e 61 6d 65 20 66 72 | 6f 6d 20 63 68 6f 6f 73 | name fr|om choos|
|00000280| 65 72 20 64 65 73 6b 20 | 61 63 63 65 73 73 6f 72 |er desk |accessor|
|00000290| 79 0d 20 2a 2f 0d 4f 53 | 45 72 72 20 0d 53 74 72 |y. */.OS|Err .Str|
|000002a0| 47 65 74 43 68 6f 6f 73 | 65 72 20 28 74 68 65 4e |GetChoos|er (theN|
|000002b0| 61 6d 65 29 0d 09 72 65 | 67 69 73 74 65 72 20 53 |ame)..re|gister S|
|000002c0| 74 72 69 6e 67 50 74 72 | 20 74 68 65 4e 61 6d 65 |tringPtr| theName|
|000002d0| 3b 0d 7b 0d 09 72 65 67 | 69 73 74 65 72 20 53 74 |;.{..reg|ister St|
|000002e0| 72 69 6e 67 48 61 6e 64 | 6c 65 20 73 74 72 48 6e |ringHand|le strHn|
|000002f0| 64 6c 3b 0d 0d 09 73 74 | 72 48 6e 64 6c 20 3d 20 |dl;...st|rHndl = |
|00000300| 47 65 74 53 74 72 69 6e | 67 28 2d 31 36 30 39 36 |GetStrin|g(-16096|
|00000310| 29 3b 09 09 09 09 09 2f | 2a 20 72 65 73 49 44 20 |);...../|* resID |
|00000320| 6f 66 20 63 68 6f 6f 73 | 65 72 20 73 74 72 69 6e |of choos|er strin|
|00000330| 67 20 2a 2f 0d 09 69 66 | 20 28 73 74 72 48 6e 64 |g */..if| (strHnd|
|00000340| 6c 29 20 7b 09 09 09 09 | 09 09 09 09 09 2f 2a 20 |l) {....|...../* |
|00000350| 69 66 20 72 65 73 6f 75 | 72 63 65 20 61 63 74 75 |if resou|rce actu|
|00000360| 61 6c 6c 79 20 65 78 69 | 73 74 73 20 2a 2f 0d 09 |ally exi|sts */..|
|00000370| 09 53 74 72 50 43 70 79 | 28 74 68 65 4e 61 6d 65 |.StrPCpy|(theName|
|00000380| 2c 20 28 53 74 72 69 6e | 67 50 74 72 29 20 2a 73 |, (Strin|gPtr) *s|
|00000390| 74 72 48 6e 64 6c 29 3b | 09 09 2f 2a 20 63 6f 70 |trHndl);|../* cop|
|000003a0| 79 20 73 74 72 69 6e 67 | 20 74 6f 20 4e 61 6d 65 |y string| to Name|
|000003b0| 20 70 61 72 61 6d 20 2a | 2f 0d 09 09 52 65 6c 65 | param *|/...Rele|
|000003c0| 61 73 65 52 65 73 6f 75 | 72 63 65 28 28 48 61 6e |aseResou|rce((Han|
|000003d0| 64 6c 65 29 20 73 74 72 | 48 6e 64 6c 29 3b 09 09 |dle) str|Hndl);..|
|000003e0| 09 2f 2a 20 72 65 6c 65 | 61 73 65 20 74 68 65 20 |./* rele|ase the |
|000003f0| 72 65 73 6f 75 72 63 65 | 20 2a 2f 0d 09 09 72 65 |resource| */...re|
|00000400| 74 75 72 6e 28 6e 6f 45 | 72 72 29 3b 0d 09 7d 0d |turn(noE|rr);..}.|
|00000410| 0d 09 72 65 74 75 72 6e | 28 6e 69 6c 48 61 6e 64 |..return|(nilHand|
|00000420| 6c 65 45 72 72 29 3b 0d | 7d 0d 00 00 00 00 00 00 |leErr);.|}.......|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+