Re: problem with autowiz.c

From: Daniel A. Koepke (dkoepke@california.com)
Date: 12/30/99


On Thu, 30 Dec 1999, Warren Robbins wrote:

> Without looking in the man pages, I'm going to jump to the conclusion
> that strlen() returns an unsigned integer, because there is no string
> of negative length[1].

Specifically, strlen() returns a value of type size_t, which is unsigned.

> [2] - It may be fractions of fractions of a second quicker, I suppose,
> but it may have made it more difficult for you to debug, so you've
> lost more time now than you gained by having a quicker operation.

Most optimizing compilers, GCC included, will automatically perform this
optimization for you.  There's no need for it in most situations.

-dak


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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