nts0699@dsacg1.UUCP (Gene McManus) (01/05/89)
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*"41I<W!L87D@82`G=')E92<@;V8@=&AE(&1IE M<F5C=&]R>2!S=')U8W1U<F4@9F]R(&$@9VEV96X@9')I=F4N#0H)26YC;'5DH M92!D<FEV92!N86UE(&%S(&$@8V]M;6%N9"!L:6YE(&%R9W5M96YT('1O('-P' M96-I9GD@9')I=F4N($EF#0H);F]T('-P96-I9FEE9"P@=&AE(&-U<G)E;G0@. M;&]G9V5D(&1R:79E(&ES(&UA<'!E9"X@5&AI<R!W87,@=W)I='1E;@T*"71O+ M(&1E=F5L;W`@86YD('1E<W0@=&AE('1E8VAN:7%U97,@=&\@9&ES<&QA>2!A; M(&=R87!H:6,@=')E90T*"7-T<G5C='5R92!F;W(@82!C;VUM97)C:6%L('!R6 M;V1U8W0L('1H92!+65-3(2AT;2D@4WES=&5M($]R9V%N:7IE<BX-"@E!(&YU7 M;6)E<B!W:&EC:"!I;F1I8V%T97,@=&AE(&YE<W1I;F<@;&5V96P@:7,@<')I= M;G1E9"!O;B!E86-H(&QI;F4N#0H-"@E7<FET=&5N(&9O<B!-:6-R;W-O9G0@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