Slashdot Mirror


User: wtf

wtf's activity in the archive.

Stories
0
Comments
4
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4

  1. *cough* symbian *cough* on Nokia Announces Qt Open Governance Model · · Score: 1

    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.

  2. Re:Hope they do better than the US Navy did with N on Swedish Carbon-Fiber Stealth Ship Runs NT · · Score: 1

    The operation timed out when attempting to contact www.yorktown.navy.mil.

    Looks like they still haven't got over their NT toothing problems.

  3. Re:I think you forgot something. on On Situated Software - Designing For The Few? · · Score: 1

    I think that might be the joke!?

  4. Re:scanf replacement? on Best Practices for Programming in C · · Score: 1

    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