On Mon, 25 May 1998, Daniel Koepke wrote:
>On Mon, 25 May 1998, Mundi King wrote:
>
>-> if (arg2 == '\0')
>
>That should give you a compiler error.
'\0' is just a fancy way to write 0 (not '0'), which is what NULL is.
In general, I use:
'\0' when manipulating characters.
NULL when manipulating pointers.
0 when using numbers.
It helps to avoid confusion.
--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://patches.van.ml.org/ | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/ | -- 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