On Wed, 19 Jan 2000, Mac Manson wrote: > const char *newlist; > const char *curtok; These shouldn't be const. 'const' means constant, or, in other words, means the variable's value doesn't change. You can safely remove 'const' without, in theory, creating any new warnings -- variables inside the scope of a function do not effect the function's prototype. That is, if int isname (const char *, const char *); is the prototype, then, int isname (const char *a, const char *b) { /* any valid code can go here */ } meets the requirements. The body of the function doesn't have an impact and thus does not need to change under this circumstance. -dak +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT