Jin Hui wrote:

> Anyone can help me with any easy methods to handle the 64bit int in C/C++ of
> Linux for Intel. I want to convert from/to string and calculation. Thanks!

gcc understands `long long int' as a 64-bit integer on a 32-bit
architecture. glibc's printf() and scanf() understand the `L' modifier 
as indicating a 64-bit integer.

For example:

        #include <stdio.h>
        
        int main(void)
        {
                unsigned long long int i;
        
                for (i = 1; i; i *= 2)
                        printf("%Lu\n", i);
        
                return 0;
        }

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to