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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable count arguments, ( , ...); stdarg.h ???

Status
Not open for further replies.

todor81

Programmer
Dec 14, 2001
5
BG
Can anybody offer me a tutorial that contains information abour parsing arguments of function like this:
int pprintf (char *format, ... );

It does the same work as printf, but instead of value, it receives a pointer.

int a = 10;
printf ("%d", a);
pprintf ("%d", &a);

Both does the same thing.

Thanks in advance.
 
There are two separate facilities which perform these functions, vararg and stdarg. stdarg is the most current. If you are working on UNIX type:

man stdarg.

In Windoze there is a lot in MSDN Library. Just search for stdarg.

From there the documentation is prety clear with examples and syntax.

Brudnakm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top