Mail Archives: djgpp/2001/01/23/09:52:49
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 -