i am getting a warning:
assignment makes integer from pointer without a cast
i am compiling with gcc on slackware 10 but its a general language question which is why its not posted to linux programming.
this is the function that is generating the error
packet is a globally declared char array of size MAXPACKETLENCode:void clearPacketArray(void) { int i; for (i=0; i <= MAXPACKETLEN; i++) { packet[i] = NULL; } }
which is declared as follows at the top of the program
i have tried changing it toCode:#define MAXPACKETLEN 256
packet[i] = "";
and
packet[i] = '';
all result in the same warning which i would like to rid from my program