That code was written when things were only 16 bits. I think it will depend on the compiler and the size of a long int. For gcc v 4.3.2 on 64 bit Linux a long int is 8 bytes on x86_64 -- David A. Fournier P.O. Box 2040, Sidney, B.C. V8l 3S3 Canada Phone/FAX 250-655-3364 http://otter-rsch.com