I have char * lines[1000] string that can hold 1000 characters. How to create 100 arrays of that string. I get error with this code down.
char * lines[1000];
lines = (lines*)malloc(100 * sizeof(lines));
main.c:19:20: error: expected expression before ')' token
(char*)not(lines*).char * lines[1000]isn't a pointer to a string of 1000 characters but is a pointer to a pointer of an array of char. It's achar**.