MSC delay() routine?

Dan Mick dan at kfw.COM
Wed Mar 14 06:09:14 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.


#define FLAME

OF COURSE YOU CAN ASSIGN A STRUCT LIKE THAT!  Post answers *after* you know
what you're talking about, dammit!  EVERY C COMPILER I'VE USED ALLOWS STRUCT
ASSIGNMENT, *MUCH LESS* Turbo C!!!!!

#undef FLAME



More information about the Comp.lang.c mailing list