16.03.2015, 19:27
You should really only put one optional string and it should be last parameter at that. I don't think you can put an optional string before another type of parameter or even multiple optional strings. If one those strings contains extra spaces sscanf will screw up because it doesn't know where it needs to split.