42-School-Exam-Rank-03
42-School-Exam-Rank-03 copied to clipboard
iteration before '\0'
Hi, I think you i++ one time more line 24. *on get_next_line.c
Hey, Thankyou for messaging, is this what you mean?
}
i++;
i++;
buffer[i] = '\0';
return (buffer);
Hi, I mean
if ((!buffer[i - 1] && !rd) || rd == -1) { free(buffer); return (NULL); } buffer[i] = '\0';Sorry for my english Le mar. 8 févr. 2022 à 16:32, Pasquale Emilio Rossi < @.***> a écrit :
Hey, Thankyou for messaging, is this what you mean?
} i++; i++; buffer[i] = '\0';
return (buffer);
}
— Reply to this email directly, view it on GitHub https://github.com/pasqualerossi/42-School-Exam-Rank-02/issues/1#issuecomment-1032738611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHPOB6WNM7YPMKM4WR4JZTU2EZR7ANCNFSM5N2AYO6Q . You are receiving this because you authored the thread.Message ID: @.***>
Ohh as in remove the i++ from the code.
Don’t worry about your English, it’s pretty good!