Re: [World Editors] Dikued

From: George (greerga@CIRCLEMUD.ORG)
Date: 03/17/98


On Tue, 17 Mar 1998, AxL wrote:

>   although specifying DU_MAXSTRLEN as the max allowable size twice seems
>redundant.  But encapsulating fgets() in my own mfgets() sounds like a good
>idea at the moment, thanks.  I'll compare that to George's read_line
>suggestion too, and see which'll work better for the situation.

Don't forget to check for a NUL (not NULL) string with my method or you'll
underrun the character array.  The application of that is left as an
exercise. :)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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