Re: [NEWBIE] Leech command.

From: Daniel A. Koepke (dkoepke@circlemud.org)
Date: 09/18/02


On Wed, 18 Sep 2002, Mike Stilson wrote:

> [skip_spaces()] has the advantage of not needing another kinda large
> buffer.. it's nicer on memory)

It also has the disadvantage that 'leech foo ' won't work (note the
trailing space).  Additionally, a 256-byte temporary buffer isn't exactly
hard on memory, so

  char arg[MAX_INPUT_LENGTH];
  one_argument(argument, arg);

is _really_ what you want to do in this case.


-dak

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT