MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Re: How to debug a method taking a variable list of arguments?
James Hu wrote:
>
> On Sat, 12 Jun 1999 23:23:15 -0700, Ben Greear <greear#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#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#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#kanga,nu
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- Re: [MUD-Dev] thoughts on game economies, (continued)
- [MUD-Dev] ADMIN: Searching on MUD-Dev archives,
claw claw#kanga,nu, Mon 14 Jun 1999, 04:20 GMT
- [MUD-Dev] Twisted Reality,
claw claw#kanga,nu, Mon 14 Jun 1999, 01:29 GMT
- [MUD-Dev] How to debug a method taking a variable list of arguments?,
Ben Greear greear#cyberhighway,net, Sun 13 Jun 1999, 07:01 GMT
- [MUD-Dev] Game economics,
Matthew Mihaly diablo#best,com, Sat 12 Jun 1999, 00:50 GMT
- [MUD-Dev] Playing the monsters,
David95037 David95037#aol,com, Fri 11 Jun 1999, 19:26 GMT
[ Other Periods
| Other mailing lists
| Search
]