*strptr = ',';
free(listptr[i]);
}
*(--strptr) = NULL;
if (i > 0)
strptr--;
*strptr = NULL;
free(listptr);
return (str);