MSC delay() routine?
D'Arcy J.M. Cain
darcy at druid.uucp
Fri Mar 16 09:22:09 AEST 1990
In article <1990Mar13.041457.17217 at cubmol.bio.columbia.edu> ping at cubmol.bio.columbia.edu (Shiping Zhang) writes:
>In article <1280001 at hpcc01.HP.COM> azarian at hpcc01.HP.COM (Randy Azarian) writes:
>>Does anyone have a delay routine written in C?
>
>How about sleep()?
>
>>Here is what I have. It works, but it isn't too consistant.
>>If I say delay(1), sometimes I get a delay for one second, and sometimes I
>>get a microsecond delay.
>
>[...]
>> struct dostime_t time1, time2;
>[...]
>> _dos_gettime(&time1); time2=time1;
> ^^^^^^^^^^^
>You can't assign a struct like that. You must assign the elements
>of a struct individually.
>
>
>-ping
Don't you read this newsgroup? We just went through this discussion a
couple of weeks ago. Of course you can assign a struct to a struct. I
think it's time you got rid of your K&R1 and replaced it with K&R2.
--
D'Arcy J.M. Cain (darcy at druid) | Thank goodness we don't get all
D'Arcy Cain Consulting | the government we pay for.
West Hill, Ontario, Canada |
(416) 281-6094 |
More information about the Comp.lang.c
mailing list