[MUD-Dev] Re: How to debug a method taking a variable list of arguments?

Ben Greear greear at cyberhighway.net
Sun Jun 13 13:46:25 CEST 1999


James Hu wrote:
> 
> On Sat, 12 Jun 1999 23:23:15 -0700, Ben Greear <greear at cyberhighway.net> wrote:
> 
> >I'm trying to pass a list of variable arguments through several methods.
> >For one reason or another, it's not working right, and I'm having a hard
> >time getting gdb or any other method to figure out why.
> 
> After you have retrieved the va_list from one function, you cannot
> pass that list to another that is expecting ``...''.  You must pass the
> va_list to a function expecting a va_list.
> 
> See, for example, the answer to question 15.5 in the C-faq.
> 
>   http://www.eskimo.com/~scs/C-faq/top.html

Ahh, the v in front of the vprintf should have warned me!!

Thanks, that fixed the problem.


> 
> --
> James C. Hu <jxh at cs.wustl.edu>       Computer Science Doctoral Candidate
> http://www.cs.wustl.edu/~jxh/        Washington University in Saint Louis
> >>>>>>>>>>>>> I use *SpamBeGone* <URL:http://www.internz.com/SpamBeGone/>

--
Ben Greear (greear at cyberhighway.net)  http://scry.wanfear.com/~greear 
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com


_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev




More information about the mud-dev-archive mailing list