how to use sscanf?



is it similar to scanf?
when i use scanf it can read the words in the screen automatically one after another.i use a char array to store the string,then use sscanf to read the words,but it just only reat out the first word in the string array every time. so if i want to read the words in the string one by one, just like scanf, what should i do?


thanks!
.



Relevant Pages

  • Re: Newbie-question: scanf alternatives?
    ... You want to point this somewhere; either allocate memory or point ... it to a char array. ... > What is most common way to read this? ... scanf() can be "healed". ...
    (comp.lang.c)
  • Re: Scanf Behaviour
    ... > Hey I tried it on the VC++ 6.0 and it ran fine without any crashes... ... the inner scanf. ... where to store that integer, ...
    (comp.lang.c)
  • Re: output problem
    ... What is the first character it reads? ... store a zero-length string in artist... ... in this case, scanf() terminates, leaving artistunchanged. ... The return value from scanftells you how many assignments ...
    (comp.lang.c)
  • Re: sscanf
    ... scanf() is vulnerable if the string passed to it is not zero-terminated, ... if the buffer passed to it to store the results is too short. ... representation in the registry. ... 'standard' alternative to swscanf for use in a driver? ...
    (microsoft.public.development.device.drivers)
  • Re: What am I doing wrong? (C newbie)
    ... When doing input, your program needs to know where to store it, hence ... scanf() needs suitable addresses of storage that it can use to store the ... incoming data. ... OTOH printf wants to know what data you want it to ...
    (alt.comp.lang.learn.c-cpp)