Linux-Hams archive - July 1998: sizeof() does work...
sizeof() does work...
Karl F. Larsen (qnmdken.qybfeb@fibertel.com.ar)
Tue, 7 Jul 1998 05:34:49 -0600 (MDT)
As expected it was the ignorance of the user, not a problem with
the function. The user thought proper usage was "int" and "long" as
classes of numbers. But the proper usage is "short int" and "long int" or
if your lazy, "long" and "short" work.
Default plain "int" is defined as "long int". I fooled around with
a 4 byte floating point and it works, if you do some odd arithmatic.
Thanks to the the notes that kept me playing. I would still be
confused without your help
Best wishes
- Karl F. Larsen, 3310 East Street, Las Cruces,NM (505) 524-3303 -