Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!labrea!aurora!ames!amdcad!amd!intelca!mipos3!cpocd2!rod
From: rod@cpocd2.UUCP (Rod Rebello)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Need help (Turbo C program)
Message-ID: <805@cpocd2.UUCP>
Date: Fri, 24-Jul-87 16:33:53 EDT
Article-I.D.: cpocd2.805
Posted: Fri Jul 24 16:33:53 1987
Date-Received: Sat, 25-Jul-87 17:48:02 EDT
References: <306@qtc.UUCP> <5190001@hplsla.HP.COM>
Reply-To: rod@cpocd2.UUCP (Rod Rebello)
Organization: Intel Corp., ASIC Systems Operation, Chandler, AZ
Lines: 19

In article <5190001@hplsla.HP.COM> davidr@hplsla.HP.COM (   David M. Reed) writes:
>
>I am not an authority, and am only slightly familiar with C, but I also had
>some problems with directory listings when attempting such (in Turbo Pascal).
>The item I see missing from your code (and maybe it is in dir.h or somewhere
>else) is the DOS function 1A "set dta address" before the call to findfirst.
>At least, that was my problem.  I was defining the structure for findfirst to
>put its information in, but being a novice programmer, was not aware that I
>had to tell DOS explicitly through a separate function call as to just where
>the data should be put, and thus was experiencing garbage.

I didn't see the original code, but in Turbo C, you do not have to
explicitly set the dta address prior to calling findfirst.  This is
handled automatically.  I have used this routine, along with findnext
several times without problems.


	Rod Rebello
	...!intelca!mipos3!cpocd2!rod