Path: utzoo!utgpu!watmath!clyde!att!osu-cis!dsacg1!nts0699 From: nts0699@dsacg1.UUCP (Gene McManus) Newsgroups: comp.sys.ibm.pc Subject: Re: Directory list source code Keywords: MSDOS MSC directory list Message-ID: <609@dsacg1.UUCP> Date: 5 Jan 89 14:35:10 GMT Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 135 Since several folks asked for it: The following is a uuencoded file for C source code that will follow down the directory structure, producing a graphical display of the directory structure to stdout. It is written in MSC 5.1, and uses some of the DOS file functions available to this compiler. Since the source code contains PC line graphics characters, I have uuencoded the file. This was originally written to investigate techniques to chase down nested directory chains and utilizes a recursive function call to do so. I place this code in the public domain for whatever use it may be put to, and assume no responsibility whatsoever for it. I have a compiled .EXE file from this code. I haven't submitted it because it doesn't have a lot of general purpose utility. If you would like a copy, email me, and I'll send it to you. Gene Gene McManus @ Defense Logistics Agency Systems Automation Center, Columbus, OH 43215 (614) 238-9403, Autovon 850- UUCP: {uunet!gould,cbosgd!osu-cis}!dsacg1!gmcmanus The views expressed are my own, not those of The Agency, or Dept. of Defense ------------------------Cut here-------------------------------------- section 1 of uuencode 2.13 of file testdir.c by R.E.M. begin 644 testdir.c M+RH-"@E497-T9&ER+F,-"@T*"41I2!S=')U8W1U2!A; M(&=R87!H:6,@=')E90T*"7-T7!E\ M9&5F('-T41I2!T:&5M+@T*"51H:7,@9G5N8W1I;VX@:7,@R MPT*("`@PT*"0EF:7)S="`](#`[#0H)"7!RP M:6YT9B@B,"`E2AT:&ES2 M7V1I2AF=6QL7W!A=&@L('1H:7-?9&ER*3L-"@D)PT*"0ES=')C<'DH=&AI5]D:7(@/2!44E5%.PT*#0H)O M9&]N92`](%]D;W-?9FEN9&9IPT*"0D)96UP='E?9&ER(#T@1D%,4T4[#0H)"0EM=7-T7V-L;W-E(#T@^ M5%)513L@#0H)"0ED:7-P;&%Y6S!=(#T@)UPP)SL-"@T*"0D):68H&9F.PT*#0H)"0EF;W(H:2`](#$[(&D@/"!S:&EF=#L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