Focus on Sun
Sun Studio 11: C++ 5.8 Compiler Apr 16 2007 01:22AM
neelabhsharma1 gmail com (2 replies)
As per the specifications the compiler should be based on C99. But i think it still does not handle the function call strtoll(). This issue did not 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 = "89abcdef";
long long int c;
a[8] = '\0';
c = strtoll(a, NULL, 16);
printf("the num is %8x", c);
return 0;
}

My understanding of the OS, Platform (SPARC), ofcourse C is just of a beginner and am eager to learn, please provide supporting comments..

Thanks and Regards

[ reply ]
Re: Sun Studio 11: C++ 5.8 Compiler Apr 16 2007 06:05PM
Steven Leikeim (sleikeim ucalgary ca)
Re: Sun Studio 11: C++ 5.8 Compiler Apr 16 2007 05:22PM
Michael T Pins (mtpins nndev org)


 

Privacy Statement
Copyright 2010, SecurityFocus