I'm trying to resize an array using realloc and it's telling me that the size is invalid but I'm not sure why since I'm using sizeof to get the correct size. Any ideas?
void resize(char* c, int i);
printf("%s", "How many characters would you like to enter? ");
if (numberOfInputs > 1)
printf("You input: %s", inputs);
void resize(char* c, int i)
c = (char*) realloc(c, sizeof(char) * i);