MSC delay() routine?

Will Crowder will at kfw.COM
Wed Mar 14 03:07:07 AEST 1990


In article <1990Mar13.041457.17217 at cubmol.bio.columbia.edu> 
ping at cubmol.bio.columbia.edu (Shiping Zhang) writes:
>[...]
>>  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.

No, you don't have to assign the elements of the struct individually.  We
just went through this.  You can do anything with a struct you can do
with any other object, including assign it, pass it by value, etc. etc.
All ANSI C compilers and almost all UNIX C compilers now handle this.
In the dark old days, you couldn't do that, but that is no longer the case.

(Don't you read this group before you post?)

Will



More information about the Comp.lang.c mailing list