sscanf with multiple spaces?

Posted by jamall55 on Stack Overflow See other posts from Stack Overflow or by jamall55
Published on 2010-05-24T15:08:51Z Indexed on 2010/05/24 15:11 UTC
Read the original article Hit count: 205

Filed under:
|

Hi.

sscanf(text, "%s %s", name, company);

parses 'ian mceknis' but it also parses 'ian mceknis' and so on. How can i make this to parse only the first one? It must contain only one space not more.

Thank you.

© Stack Overflow or respective owner

Related posts about c

    Related posts about sscanf