A
Agile
I have a simple function that takes variable argument list, the sample
code
is below:
func1( char* a, ...)
{
va_list arg_list;
va_start(arg_list,a);
// do something with arg_list
va_end(arg_list);
}
It worked on Windows and SUN OS, but on HP-UX the arg_list is NULL
after "va_start".
Seems like arg_list is not being initialized. Any ideas?
code
is below:
func1( char* a, ...)
{
va_list arg_list;
va_start(arg_list,a);
// do something with arg_list
va_end(arg_list);
}
It worked on Windows and SUN OS, but on HP-UX the arg_list is NULL
after "va_start".
Seems like arg_list is not being initialized. Any ideas?