#include <stdio.h>
#include <stdlib.h>
char **matrizExemplo()
{
char **vet;
char tamVetor = 1;
vet = malloc(sizeof(char)*tamVetor);
vet[0] = malloc(sizeof(char)*10);
strcpy(vet[0], "teste");
printf("Dentro da funcao vet[0] e: %s\n", vet[0]);
return vet;
}
int main()
{
char **retorno;
retorno = matrizExemplo();
printf("Retorno e: %s\n", retorno[0]);
free(retorno[0]);
free(retorno);
return 0;
}