> i have some debug stuffs i can enable/disable with a #define. > But if i disable them, my code is lower and variable initialization > seems to be different : > > Char *t; // doesn't anymore point to NULL ?! > int s; // != 0 ?!
this is probably just a side effect you got used to. the C standard doesn't specifically say your variables are initialized to zero in any way whatsoever. if you want it to be NULL and 0, do this: Char *t = NULL: int s = 0; please, dont make us teach you how to program in C :) your compiler just happened to initialize the values to zero (yes, feel very lucky) and, you only noticed it when you changed the segment declarations. bug in your code, not compiler. --- 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/
