Re: [code] Three Arguments

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/07/97

On Tue, 7 Oct 1997, Aaron Miller wrote:

>stumps me.. what is that, and how can I make a three_arguments type
>parser? Oh, and I noticed there is no third_arg :(

greerga@bacon:~/mud/wrk/circle30bpl11/stk$ fgrep "char *two_argument" *.c -n
interpreter.c:976:char *two_arguments(char *argument, char *first_arg, char *second_arg)

And at line 976:

char *two_arguments(char *argument, char *first_arg, char *second_arg)
  return one_argument(one_argument(argument, first_arg), second_arg); /* :-) */

So then we guess from that:

char *three_arguments(char *argument, char *arg1, char *arg2, char *arg3)
  return one_argument(one_argument(one_argument(argument, arg1, arg2, arg3)));

George Greer  -   | Genius may have its limitations, but stupidity | is not thus handicapped. -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/08/00 PST