Queto è il codice:
La funzione "validate" richiamata all'interno di func è una funzione che restituisce 1 carattere.codice:void func(char **word) { int i; i = 0; do { **word = func2(*word,validate(),i); i++; if(...) { *word = (char *)realloc (*word, sizeof(char) * (i+10) } } while (*word[i-1] != '\n'); *word[i-1] = '\0'; } char func2 (char *string, char c, int i) { string[i] = c; return (*string); }

Rispondi quotando