About 4,360,000 results
Open links in new tab
  1. c - Properly using sscanf - Stack Overflow

    The first part is answering the general question of "properly using sscanf", by describing the benefits of using sscanf, and when it is preferable to use sscanf.

  2. c - How to use sscanf correctly and safely - Stack Overflow

    First of all, other questions about usage of sscanf do not answer my question because the common answer is to not use sscanf at all and use fgets or getch instead, which is impossible in my case. ...

  3. c - sscanf behaviour / return value - Stack Overflow

    If sscanf encounters characters only, it writes them to &c...but in that case &n won't have been written to. In this case, I would have thought that the return value of sscanf would still be 1?

  4. c - Using fscanf () vs. fgets () and sscanf () - Stack Overflow

    The separate fgets() and sscanf() allow logical separation of I/O issues from format ones and thus better recovery. Only 1 parsing path with fscanf(). Separating I/O from scanning as with fgets/sscanf allows …

  5. c - Reading a string with spaces with sscanf - Stack Overflow

    For a project I'm trying to read an int and a string from a string. The only problem is sscanf() appears to break reading an %s when it sees a space. Is there anyway to get around this limitation? ...

  6. c - Understanding sscanf formatting - Stack Overflow

    Jul 31, 2017 · Again sscanf() is used, this time with name[] as the input string. The return value is stored and used to determine how to store the strings contained in fname[], mname[], and lname[] (if …

  7. Don't understand how sscanf() function works - Stack Overflow

    Nov 16, 2013 · The sscanf() statement in the example has three arguments and a return value which is ignored (rather at your peril). The first argument is a C style string, so the word that was read is …

  8. What does the n stand for in `sscanf (s, "%d %n", &i, &n)`?

    Feb 12, 2015 · The sscanf () function works the same, it just takes it's input from the supplied buffer argument ( s in this case ). The "== 1" test makes sure that only one integer was parsed and the !s …

  9. c - Using sscanf to read strings - Stack Overflow

    Apr 21, 2016 · I am trying to save one character and 2 strings into variables. I use sscanf to read strings with the following form : N "OldName" "NewName" What I want : char character = 'N' , char* …

  10. scanf - how do i use sscanf () method in C - Stack Overflow

    Apr 6, 2013 · 2 sscanf like many other C library functions stops iterating a string when it reaches a 0 (same as '\0'). The first element of your bytes array is 0. Hence as far as sscanf is concerned, your …