Sun Studio 11: C++ 5.8 Compiler
[email protected] 16 Apr 2007 01:22:07 -0000
| Newsgroups | gmane.comp.security.sun |
|---|---|
| Message-ID | <[email protected]> |
As per the specifications the compiler should be based on C99. But i thin=
k it still does not handle the function call strtoll(). This issue did no=
t arise with RHL 9.0
If it did the handling properly then the result of the program should not=
be 0.
/*Snippet of the Code */
#include<stdio.h>
#include<stdlib.h>
int main()
{
char *a =3D "89abcdef";
long long int c;
a[8] =3D '\0';
c =3D strtoll(a, NULL, 16);=20
printf("the num is %8x", c);=20
return 0;
}
My understanding of the OS, Platform (SPARC), ofcourse C is just of a beg=
inner and am eager to learn, please provide supporting comments..
Thanks and Regards=20