Can someone please help me on how to specify the width for %p format specifier, for let's say sscanf()?
I know it is unsafe to use sscanf without specifying the width for the sub-string in the format specifier. This was easy for me till I encountered sscanf() with %p specifier.
There already was a question which was primarily on printing a value with %p in printf, but that question was mostly revolving on what possibly is the full width of a %p formatted string. This question is mainly on how to safely use sscanf() with %p specifier, for which I need to specify the full width of the sub-string.
Thanks in advance.