Convert char to float
Dave Eisen
dkeisen at Gang-of-Four.Stanford.EDU
Sat Dec 22 05:22:03 AEST 1990
In article <1990Dec21.180826.24945 at Neon.Stanford.EDU> dkeisen at Gang-of-Four.Stanford.EDU (Dave Eisen) writes:
>
> int elapsed;
>
> elapsed = (tm2.hour - tm.hour) * 3600 * 100 + (tm2.minute - .....
>
Ooops! I've been working on machines with 4 byte ints for too long.
That should be:
long elapsed;
elapsed = ....;
--
Dave Eisen dkeisen at Gang-of-Four.Stanford.EDU
1447 N. Shoreline Blvd.
Mountain View, CA 94043
(415) 967-5644
More information about the Comp.lang.c
mailing list