list = (char **) malloc((n+1)*(sizeof(char *)));
list = (char **) malloc((n+1)*sizeof(char *));
char **user_list(char *user_str) {	int n, i;	char *p, **list;		p = user_str;	n = 1;	while (*p++) {		if (*p == ',') {			n++;		}	}	list = (char **) malloc((n+1)*(sizeof(char *)));	p = strtok(user_str, ",");	i = 0;	while (p) {		list[i++] = p;		p = strtok(NULL, ",");	}	list[i] = NULL;	return list;}