findfirst/findnext in Turbo C

Austin Ziegler austin at bucsf.bu.edu
Tue Oct 24 11:45:39 AEST 1989


>>>>> On 23 Oct 89 13:12:05 GMT, dkrause at orion.oac.uci.edu (Doug Krause) said:

Doug> I'm using Turbo C 2.0 on a PC clone.  My question:  I'm using findfirst
Doug> and findnext to read the disk directory.  In the structure returned are
Doug> two integers that tell the file date and file time.  Is there a function
Doug> to convert these numbers into something more useful like hh:mm?

     I think that there are functions (packtime and unpacktime or something
like that) to do this.  I don't have my compiler in front of me now, but go
into the help mode, Header files, Dir.H, and then go to findfirst or
find/next.  If it is not in that help section, look under DOS.H.  If you
would post the proper answer, I would appreciate it.  (I program in Pascal
more often...)

	  Elminster, the Sage of Shadowdale (austin at bucsf.bu.edu)
	       700 Commonwealth Box 2094, Boston, MA  02215
				     
		Pascal Guru here, I want to be a C guru...



More information about the Comp.lang.c mailing list