Make no assumptions about how large n may be.
Make no assumptions about how many integers will be entered.
char **split(char *s)The original string should not be changed. The function should return an array of pointers to the substrings. The last element in the array should be NULL.
The memory for both the array and the substrings should be allocated with malloc.
For example: given the string "ab,cdef,ghi", the function should return a four element array the first three elements should be pointers to the strings "ab", "cdef", "ghi". The last element should be null.