Problem with sscanf
hugues marty
marty at cernvax.cern.ch
Tue Feb 5 20:55:27 AEST 1991
I'm having problem with sscanf. I would like to get items in a string
delimited by a coma. So I wrote :
sscanf("1,,3", "%[^,],%[^,],%[^,]", s1, s2, s3);
I get "1" into s1, "" into s2...
But what goes into s3 is *not* "3". Of course, I could write
my own function, but I would like to know if something is wrong
with this.
Tnx
--
e+ ----> :-) <---- e- e-mail :
Les Chercheurs de Bosons Unifies marty at cernvax.cern.ch
More information about the Comp.lang.c
mailing list