!<arch> Islsappend 418431536 968 27 100644 179 ` 10th The 1st Software 2nd Project 3rd Management 4th System 5th (SPMS) 6th is 7th a 8th system 9th for aaa management Aaa of BBB medium bbb to Bbb large bbb/ software bb/ systems Oslsappend 418431536 968 27 100644 202 ` 10th The 1st Software 2nd Project 3rd Management 4th System 5th (SPMS) 6th is 7th a 8th system 9th for aaa management Aaa of BBB medium bbb to Bbb large bbb/ software bb/ systems maxkey = 4 maxstr = 10 Tslsappend.c 418431536 968 27 100644 753 ` /* * slsappend() */ #include <stdio.h> #include "null.h" #include "slslist.h" #define KEYSIZE 10 #define STRSIZE 128 char *PGN = "Tslsappend"; main() { char key[KEYSIZE]; /* key to be added */ char *slsappend(); /* append key+string */ char string[STRSIZE]; /* string to be added */ SLSBLK *curblk; /* current list block */ SLSLIST *slsinit(); /* initialize list */ SLSLIST *slslist; /* pointer to list head block */ slslist = slsinit(); while (scanf("%s%s", key, string) != EOF) slsappend(key, string, slslist); for (curblk = slslist->head; curblk != NULL; curblk = curblk->next) printf("%s %s\n", curblk->key, curblk->string); printf("maxkey = %d\n", slslist->maxkey); printf("maxstr = %d\n", slslist->maxstr); exit(0); }