Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!nysernic!itsgw!batcomputer!cornell!uw-beaver!tikal!hplsla!davidr From: davidr@hplsla.HP.COM ( David M. Reed) Newsgroups: comp.sys.ibm.pc Subject: Re: Need help (Turbo C program) Message-ID: <5190001@hplsla.HP.COM> Date: Thu, 23-Jul-87 20:18:52 EDT Article-I.D.: hplsla.5190001 Posted: Thu Jul 23 20:18:52 1987 Date-Received: Sat, 25-Jul-87 11:50:27 EDT References: <306@qtc.UUCP> Organization: HP Lake Stevens, WA Lines: 9 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.