sscanf with va_list
Posted on 1997-08-29
Here is what I want to do
void MySscanf( char* pcp_string, const char* pcp_format,
va_start( marker, pcp_format);
sscanf(pcp_string, pcp_format, marker ); /* that is impossible :-( */
va_end( marker );
As the prototype of sscanf is
sscanf( const char *buffer, const char *format [, argument ] ... );
it is not possible to pass an argument list to it.
And there is no
vsscanf( const char *buffer, const char *format, va_list argptr );
Why isn't there such a function? And what should I do?
Any ideas are welcom.