My first attempt at realloc isn't yielding the results I'd hoped for. Can anybody point me in the right direction? (linux gcc 4.1.2)
Code:int main(int argc, char *argv[]) { char *smallArray[300]; char *tmpArray; if ((tmpArray = realloc (smallArray, sizeof (smallArray) + 10 )) == NULL) { printf ("realloc failed\n"); } system("PAUSE"); return 0; }