Agile wrote:
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?
What does it mean that 'arg_list' is NULL? The contents of it are
implementation-defined. The Standard doesn't say what they should
be in any situation.
Read FAQ, especially 5.8. Somebody with access to aCC might be able
to help. If not, contact HP. After all, if you have it, you must
have technical support information, use it.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask