Re: [NEWBIE] Leech command.

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 09/19/02


On Wed, Sep 18, 2002 at 04:04:33PM -0700, Daniel A. Koepke wrote:
>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.

Oops.
I really should look at stock more often... I forgot that I smash
trailing spaces automatically in interpreter.c.

And yeah, 256 bytes isn't that much, but I always figure if you can save
any memory somewhere, why not do it? (Just like reorganizing structures
to save 3 or 4 bytes here & there... ever try compiling with -Wpadding?
;)

-me

--
   +---------------------------------------------------------------+
   | 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