Posts by malves • 13 points
1 post
-
1
votes1
answer5171
viewsQ: Check if field is empty using custom C reading function
void vazio(void) { char *str = NULL, c;//apontando para null int i = 0, j = 1; //alocação de memória para str str = (char *) malloc (sizeof(char)); printf("Informe a string: "); //ler a string while…