Re: [CODE] do_dig modifications for OasisOLC

From: George Greer (greerga@circlemud.org)
Date: 01/08/01


On Mon, 8 Jan 2001, Peter Ajamian wrote:

>(!buf || !buf2) will always return false since they are both statically
>allocated and will never be a NULL pointer, I think you mean...
>
>(!*buf || !*buf2)
>
>Which will do what you want.

Yep, that's what I meant.  I just copied his code without thinking because
I was in a hurry as the lab was closing on me.

And yes, since the function seems to require two arguments always, the
'buf' check is redundant.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/03/01 PST