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

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Sun Jun 13 10:53:06 CEST 1999


[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 at ami-cg.GraySage.Edmonton.AB.CA
               http://www.GraySage.Edmonton.AB.CA/cg/



_______________________________________________
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