On Jun 17, 2010, at 5:37 AM, Alexander Spohr wrote:
> But I think you want to know what the va_list contains.
> Then you just loop over it.
> "man stdarg" will help.
>
> Example:
> void foo(char *fmt, ...)
> {
> va_list ap;
> int d;
>
What exactly so you want?
Either you have an va_list and want to give it to NSLog? Then use
void NSLogv(NSString *format, va_list args);
But I think you want to know what the va_list contains.
Then you just loop over it.
"man stdarg" will help.
Example:
void foo(char *fmt, ...)
Le 17 juin 2010 à 14:21, Matt James a écrit :
> Hi everyone,
>
> Can anyone tell me how to NSLog() a va_list variable so I can see what's in
> it?
>
You can't. va_list does not contains information about the type of variables it
contains.
-- Jean-Daniel
___