sscanf won't *require* a space

Comments

1 comment

  • Avatar
    Jon Elliott

    I get exactly the same behaviour using Visual Studio 2015 and Linux GCC.

    Perhaps it would be better to do something like:

    if (sscanf("en 3 4", "%s %X %X", str, &x, &y) == 3 && strcmp(str, "en") == 0)
    ..
    0
    Comment actions Permalink

Please sign in to leave a comment.