I’m implementing my own version of sscanf() in a different language (not C or C++).
I’m mostly finished. I’m just trying to wrap up some of the finer details of the meaning of the format string. However, searching the web, I’m finding that not all documentation for sscanf() is the same.
For example, some say %i handle octal and hexadecimal while others don’t even include this format type. And some discuss %[ while others do not. In addition, some details just seem to be omitted.
What is the most authoritative documentation of exactly how the format string should be interpreted?
I’m not fanatical about complying with the standard. But I would like to be as compatible with any existing format strings as I can.
EDIT
If anyone is interested, I’ve published my C# implementation of sscanf() code online.
See ISO/IEC 9899:1999 7.19.6.2 (fscanf) – this is the last C standard