#include #include #include int main() { char *aux=NULL, letra; int i=0,k=0,count=0; char *nomes[50]; do{ aux = NULL; k=0; do{ letra = getchar(); aux = (char*) realloc(aux, (k+1)*sizeof(char)); aux[k] = letra; k++; }while((letra != '\n') && (letra!='$')); if(letra=='$') break; nomes[count] = (char *) calloc(strlen(aux),sizeof(char)); strcpy(nomes[count],aux); ++count; }while(1); for(i=0; i