The Anonix Project (126, permasaged)

56 Name: #!/usr/bin/anonymous : 2008-05-18 06:12 ID:Heaven

>>55
No mister Bond, what you assume is that a intmax_t fits in a long double, which is a false assumption and can lead to program bugs.
Since you didn't define main as a function returning int and rather, you let it be implied, you are not working with C99 but rather C89 and thus you don't have or strtoimax.
You have FAILED.

57 Name: #!/usr/bin/anonymous : 2008-05-18 07:29 ID:Heaven

>>56
Find me an implementation where sizeof(intmax_t) > sizeof(long double).

He(she?) didn't specify the compile options, I tested the code and it works with GCC on a system where sizeof(long double)=12 and sizeof(intmax_t)=8. Including inttypes.h will give you strtoimax(), and as long as libc is C99 compliant it will have the functions as well. >>52 never said anything about what the program should return, so that is irrelevant.

Name: Link:
Leave these fields empty (spam trap):
More options...
Verification: