4/10 Question related to the ellipsis discussion below: what is the
practical difference between using myprintf(char *fmt, ...) and
myprintf(char *fmt, va_list list)? They seem to do the same thing.
\_ va_list is necessary if you want your function to be called by
other variable-argument functions.
See http://www.eskimo.com/~scs/C-faq/q15.12.html
--jameslin
\_ K&R: func(char *fmt, va_list list)
ANSI: func(char *fmt, ...)
Use the ANSI style.
\_ This person is completely wrong. va_list is ANSI for
passing a vararg list. Btw pokemon sapphire is great. -pld |