Daniel Koepke <dkoepke@california.com> writes:
> > char *one_argument(char *argument, char *first_arg);
> > char *one_word(char *argument, char *first_arg);
> > char *any_one_arg(char *argument, char *first_arg);
> > char *two_arguments(char *argument, char *first_arg, char *second_arg);
> > void half_chop(char *string, char *arg1, char *arg2);
> >
> > Five functions (at least) for doing more or less the same thing.
>
> Less. They do a few things differently (with the exception of
> two_arguments that simply calls one_argument) and are used for
> different things, despite the similarity in functionality.
They do slightly different things, true, but they are still
repetitive. A pair of functions would achieve the same effect as all
five while being more general at the same time.
--
James Turner turnerjh@xtn.net
http://www.vuse.vanderbilt.edu/~turnerj1/
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST