while(i) { p = strchr(p, '\n'); if(!p) { // indice trop grand } i-- } p++; q = strchr(p, '\n') if(q) *q = 0;
while(p) { if(atoi(p) < i) { // trouvé p = strchr(p, '\n') + 1; q = strchr(p, '\n'); if(q) *q = 0; } p = strchr(p, '\n'); if(!p) { // pas trouvé } p = strchr(p, '\n'); if(!p) { // pas trouvé } p++; }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question