Mail Archives: djgpp/1996/06/23/03:25:45
On 21 Jun 1996, Eric Domazlicky wrote:
> BTW the reason I have the typedef there is because DJGPP never seems to
> define the struct type that gettime is supposed to use except in the info
> file, so you have to type it yerself.
>
> typedef struct {
> unsigned char ti_min;
> unsigned char ti_hour;
> unsigned char ti_hund;
> unsigned char ti_sec;
> } time_data;
>
> time_data t;
> gettime(&t);
> srand(t.ti_hund*0xff+t.ti_sec);
Did you look well enough? The struct that `gettime' accepts is defined
on <dos.h>, exactly as the on-line docs tell you. At least, that is how
the things are in DJGPP v2.0 (you didn't tell what version did you use).
- Raw text -