ok, thanks. i was working on getting the linked list in order with single chars before i move onto strings.
Code:charNode *current = start; charNode *b = start; charNode *c = current->next->next->next; while (current != NULL && current->next != NULL) { if (current->next->cityname < start->cityname ) { printf("%s %c %s", "\nFound a smaller character", current->next->cityname, "\n"); b = current; b->next = c; } current = current->next; } return start; }
returns B,D,C. i can't figure out how to put back A at the start.



LinkBack URL
About LinkBacks



