www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/01/23/09:52:49

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: _dos_findfirst
Date: 23 Jan 2001 14:24:00 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 26
Message-ID: <94k460$m16$1@nets3.rz.RWTH-Aachen.DE>
References: <E17b6.757$2i6 DOT 18025 AT news1 DOT oke DOT nextra DOT no>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 980259840 22566 137.226.32.75 (23 Jan 2001 14:24:00 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 23 Jan 2001 14:24:00 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Terje <pingping AT start DOT no> wrote:
> unsigned int _dos_findfirst(char *name, unsigned int attr, struct find_t
> *result);
[...]

> Could anyone tell me what *result returns?

The docs can, if you read them a bit more carefully...

[...]
> But this is not of importance, I just want to know what the
> result.wr_time holds, if its seconds since midnight or something
> like that.

More 'something like that'. Look up the help of the function one level
higher in abstraction, findfirst(), and you'll see that it's a
bitfield.  There's a comment saying how many of the bits of the field
are used for hours, minutes and seconds, each.

If all else fails, consult Ralph Brown's Interrupt List.
_dos_findfirst() is a direct DOS interrupt call, anyway, so its
behaviour is exactly what RBIL says it is, including any returned
information.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019