Let's hope they've learned some lessons and can apply them here. QT is one of the nicest C++ frameworks I've come across and it would be sad to see it's future mis-managed.
Not exactly what you want. btw if I had a better idea I'd mention it. Maybe fgets and then sscanf? But then you'd still have to worry about numerical overflows, so maybe not.
Isn't this what they tried to do with Symbian?
Let's hope they've learned some lessons and can apply them here. QT is one of the nicest C++ frameworks I've come across and it would be sad to see it's future mis-managed.
The operation timed out when attempting to contact www.yorktown.navy.mil.
Looks like they still haven't got over their NT toothing problems.
I think that might be the joke!?
I'm not sure ato[i|f] is the best answer either, consider the following code:
#include <stdlib.h>
#include <stdio.h>
int main( void )
{
printf( "atoi( \"1\" ) = %d\n", atoi("1") );
printf( "atoi( \"-1\" ) = %d\n", atoi( "-1" ) );
printf( "atoi( \"0\" ) = %d\n", atoi( "0" ) );
printf( "atoi( \"foo\" ) = %d\n", atoi( "foo" ) );
}
and the resulting output:
atoi( "1" ) = 1
atoi( "-1" ) = -1
atoi( "0" ) = 0
atoi( "foo" ) = 0
Not exactly what you want. btw if I had a better idea I'd mention it. Maybe fgets and then sscanf? But then you'd still have to worry about numerical overflows, so maybe not.
Pat