!<arch> Islsort 418431551 968 27 100644 67 ` 10th 1st 2nd 3rd 4th 5th 6th 7th 8th 9th AAA aaa Aaa BBB bbb Bbb Oslsort 418431551 968 27 100644 67 ` 10th 1st 2nd 3rd 4th 5th 6th 7th 8th 9th AAA Aaa BBB Bbb aaa bbb Tslsort.c 418431550 968 27 100644 658 ` /* * slsort() */ #include <stdio.h> #include "null.h" #include "slist.h" #define KEYSIZE 10 char *PGN = "Tslsort"; main() { char key[KEYSIZE]; /* key to be added */ char *gets(); /* get a line from stdin */ char *slprepend(); /* prepend key */ int slsort(); /* sort list */ int strcmp(); /* compare strings */ SLBLK *curblk; /* current list block */ SLIST *slinit(); /* initialize list */ SLIST *slist; /* pointer to list head block */ slist = slinit(); while (gets(key) != NULL) slprepend(key, slist); slsort(strcmp, slist); for (curblk = slist->head; curblk != NULL; curblk = curblk->next) puts(curblk->key); exit(0); }