MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

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



[Ben Greear:]

>             Sprintf(buf, cstr(cs_entry, *ptr), argp);

Aren't you supposed to use 'va_arg' when accessing the arguments? It might
not be a straight pass-through. That, plus a cast to the expected type,
which usually is a straight pass-through.

--
Don't design inefficiency in - it'll happen in the implementation.

Chris Gray     cg#ami-cg,GraySage.Edmonton.AB.CA
               http://www.GraySage.Edmonton.AB.CA/cg/



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




[ Other Periods  | Other mailing lists  | Search  ]