30 Oct
2006
30 Oct
'06
10:31
On Mon, Oct 30, appy 80 wrote:
This code is just a sample code that I have written to illustrate the problem. I need to convert the command line arguments into a va_list. I tried using "ap =argv;". But this is not allowed on ppc. So I am using "va_copy" to copy the contents of argv into ap. This is the main purpose. However when I use ap with vsprintf, the application is crashing.
Please provide a real usable example hello_world.c There is nothing wrong with va_args, unless proven otherwise.