Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass ... to scanf

Status
Not open for further replies.

ionutdinulescu

Programmer
Jun 11, 2002
59
0
0
GB
I have a function fct(int a, format, ...)
from this function I would like to call the function
sscanf(s, format, ...) where ... must be the arguments passed to fct. Is this thing possible ?
 
Thanks, but I would like not to use a terminator (since it may be in the list of arguments)
 
Oops; I meant call [tt]vscanf[/tt] instead of [tt]vsprintf[/tt], of course.
 
thanks for reply... but the function is SSCANF not scanf and unfortunately there is not a vsscanf version for it
 
Well, there is a [tt]vsscanf[/tt], but it was specified in C99, and some libraries don't fully support that, yet.

If you don't have access to that function, you'll have to see if your library (or compiler or preprocessor) supports an alternative. Otherwise, it might not be possible to do what you're trying to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top