> From: "Aaron Ardiri" <[EMAIL PROTECTED]>
> >
> > while, we are on the subject :P lets summarize :)
> >
> > str[index] = 0;
> > str[index] = '\0';
> > str[index] = NUL;
>
> Did you try to compile that?
sure..
===
#define NUL 0
int main()
{
char str[255] = {};
int index;
index = 0;
str[index] = 0;
str[index] = '\0';
str[index] = NUL;
printf(str);
}
===
:) now, it compiles. NULL = (void *), which, is still zero by default.
but, it is always better to declare your own NUL char :) it should be
in the headers *g*
---
Aaron Ardiri [EMAIL PROTECTED]
CEO - CTO +46 70 656 1143
Mobile Wizardry http://www.mobilewizardry.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/