Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Sun Studio 11: C++ 5.8 Compiler |
|---|---|
| Date: | Mon, 16 Apr 2007 11:22:38 -0600 (MDT) |
neelabhsharma1@gmail.com writes:
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.
By "result of the program" I assume you mean the output of the printf command. As your code is broken (and lint will show you where), the output is undefined. Fix your code and the output becomes what you expect.
/*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;
}
-- Michael T Pins | "A year from now I'd be surprised if mtpins@nndev.org | there's not some grand square in Baghdad keeper of the nn sources | that is named after President Bush." ftp://ftp.nndev.org/pub | -Richard Perle, 9/22/03
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Sun Studio 11: C++ 5.8 Compiler, neelabhsharma1 |
|---|---|
| Next by Date: | Re: Sun Studio 11: C++ 5.8 Compiler, Steven Leikeim |
| Previous by Thread: | Sun Studio 11: C++ 5.8 Compiler, neelabhsharma1 |
| Next by Thread: | Re: Sun Studio 11: C++ 5.8 Compiler, Steven Leikeim |
| Indexes: | [Date] [Thread] [Top] [All Lists] |