Uh... I used toStringz, but didn't know that it's return type is const and that people have troubles with this :) AFAIK the only function, writing to its sz argument is strtok, C libraries usually follow popular convention that input strings are "in".