I ran into a problem, I want to add item to the end of the linked list, but it seems that i am getting sucked in an infinite loop here.
void addCheckPoint(struct checkPoints **checkPoint) {
struct checkPoints *checkPt = *checkPoint;
while (checkPt->next != NULL) {
checkPt->next;
if (checkPt->next == NULL) {
scanf("%c %d %d %d %d", &checkPt->dropOut, &checkPt->currentPoint, &checkPt->competitor, &checkPt->hour, &checkPt->minute);
}
}
}