On 16-Mar-2000 Shao Zhang wrote: > Thanks. This is exactly what I want. I have thought about doing it this > way, it is just that from memory, there is a libc function that does the > equivalent. > What was given is the only safe and sane way I have ever seen. Bigger question is why do you have a unsigned long (which can be upwards of 8 bytes (64bits)) output only 4bytes (32bits)? remember, not every machine uses int === long.