Untitled
// Online C compiler to run C program online #include <stdio.h> int main() { char soluzione[MAX_LEN]; scanf("%s", soluzione); while(fgets(tentativo, MAX_LEN, fp) != NULL) { //[p] [a] [r] [c] [o] [\n] [\0] int len = strlen(tentativo); if(tentativo[len] == '\n') { tentativo[len] = '\0'; } char *ris = check(soluzione, tentativo); if(ris != NULL) { printf("%s", ris); free(ris); } } return 0; }
Leave a Comment