Re: why segfault when parameter is not "int" and is "unsigned long long int"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



        This is not true. Could be because use unformated fmt char stream, and not promove llu, and pointer is wrong.
        
        
        > typedef unsigned long long int UID;
        > ...
        >                   UID us;
        >                     usuario = va_arg (ap, UID);
        > printf("%llu",us);
        > 
        segfault
        
        This code  works if I put "unsigned int" but do not with "unsigned long long int".
        
        Should work I think.
        


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux