My output:
Code:
items = 0, key = "", value = "", n = 0
So what conclusion did we come to?
You can't use %<number>[...] or %*[...]?
Furthermore:
Code:
n Nothing is expected; instead, the number of characters consumed
thus far from the input is stored through the next pointer,
which must be a pointer to int. This is not a conversion,
although it can be suppressed with the * flag. The C standard
says: `Execution of a %n directive does not increment the
assignment count returned at the completion of execution' but
the Corrigendum seems to contradict this. Probably it is wise
not to make any assumptions on the effect of %n conversions on
the return value.
Now that's just great... *Curses at my K&R book *