Subject: Compiler bug? Index error switching from static const "char" to "Char"!
From: "Gregg Woodcock" <[EMAIL PROTECTED]>
Date: Mon, 8 Dec 2003 10:53:42 -0600


I am trying to be a GoodCoder (TM)

Seems a little strong to describe yourself as a 'good coder' (sic) if you don't know the difference between between a char and a pointer.

static const Char threeChars[] = {"123"};

((threeChars[0] != NULL)

This condition should be written as (threeChars[0] != '\0')

Hint:
Before complaining of a compiler bug, first remove the errors from your code!


Roger Stringer Marietta Systems, Inc. (www.mariettasystems.com)


-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to