Mailinglist Archive: opensuse-ppc (48 mails)

< Previous Next >
Re: [suse-ppc] SEGV while working with va_list
  • From: appy 80 <appy_80@xxxxxxxxx>
  • Date: Mon, 30 Oct 2006 04:40:49 -0800 (PST)
  • Message-id: <20061030124049.37490.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Thanks Marcus,

Marcus Meissner <meissner@xxxxxxx> wrote: On Mon, Oct 30, 2006 at 02:27:54AM -0800, appy 80 wrote:
> Hi,
> 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.

I am afraid it is not possible.

va_list are created by the compiler on a varargs function call, you cannot do it programmaticaly.

Ciao, Marcus

Want to start your own business? Learn how on Yahoo! Small Business.
< Previous Next >
List Navigation