--- [EMAIL PROTECTED] wrote: > 1. Even though the ROM is technically written in C, and C (as specified > AFAIK) does not support default values for function arguments, if I am using a > recent version of gcc, can I use default values for function arguments? Sort
> of the same way I can use // for comments? No, C doesn't have any ability to default function arguments. You can however compile it as C++ with only a few changes, and then you'd have no trouble defaulting the arguments to your function. > I want to be able to send a string to the damage() (and subsequently to > dam_message()) function to use as an arbitrary attack noun and I do not want > to have to find every call to damage() and tack a ', NULL' on the end for all > the places I'm still using the attack table/skill table damage noun. You could do this with either a preprocessor macro, or a wrapper function. I prefer the wrapper method as it is less likely to mess with gdb. Just take the meat from your damage() function and move it to a new function called custom_damage which takes all the normal arguements you'd pass to damage as well as this new custom attack noun. Then just have your damage function call custom_damage and pass it's args and NULL for the last one. > Does fread_string start reading from the place the file pointer left off or > does it read in an entire line? All the fread functions start reading at the current position in the file AFAIK. HTH ~Kender __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- ROM mailing list [email protected] Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom

