Dec 082017
 
C source that is an excellent example of recursive programming. Displays a complete directory tree. OS/2 and DOS versions.
File NEWTREE.ZIP from The Programmer’s Corner in
Category C Source Code
C source that is an excellent example of recursive programming. Displays a complete directory tree. OS/2 and DOS versions.
File Name File Size Zip Size Zip Type
MAKEFILE 488 221 deflated
NEWTREE.C 1762 811 deflated
NEWTREE.DOC 1042 618 deflated
NEWTREE.EXE 21837 13530 deflated
NEWTREE.H 699 350 deflated
N_DIR.C 1790 787 deflated
N_PRINT.C 1757 540 deflated

Download File NEWTREE.ZIP Here

Contents of the NEWTREE.DOC file


NEWTREE (v 2.xx) : View Disk Tree Structure
Copyright (c) 1989, Christopher Laforet. All Rights Reserved
Released into the Public Domain, 1989.

------------------------------------------------------------------------------

This is a program that I developed with a C class which I am teaching
to demonstrate recursive function calls. The original was developed
jointly in MSC 5.1 and Turbo C using #ifdef statements. I merely ported
it to uses family API calls and created a bound utility for OS/2 and
DOS.

Here is the executable and source.It is my hope that others might
learn from this code. Feel free to modify at will.

Use of this program is simple.Type NEWTREE and you will get a
directory tree (with a file count beside each directory) of the current
drive.You can also say NEWTREE drive: where drive is any letter of a
valid DOS drive. For example, NEWTREE c: will scan the C drive.


Graham, NC
Thu, 23-Mar-1989 at 23:37:06

The Programmer's Oasis
(919) 226-6957
9600HST,2400,1200,300-N-8-1


 December 8, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)