j
k
j a
j l
Shouldn't I get ({ "0", "1" }) from this?
array_sscanf("01", "%[0]s%s");
(1) Result: ({ /* 1 element */ "0" })
Show replies by date
No, your format string tries to match a literal "s", and since there is none in the input string, sscanf stops. You probably meant "%[0]%s".
Bonk!
pike-devel@lists.lysator.liu.se
Add to favorites Remove from favorites