4.3BSD/usr/contrib/spms/src/lib/libslist/test/slsprint.a

!<arch>
Islsprint       418431575   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

Oslsprint       418431575   968   27    100644  236       `
bb/		BBB		8th		5th		2nd
bbb/		Aaa		7th		4th		1st
Bbb		aaa		6th		3rd		10th
bbb		9th
bb/       bbb       Aaa       9th       7th       5th       3rd       1st
bbb/      BBB       aaa       8th       6th       4th       2nd       10th
Bbb
Tslsprint.c     418431575   968   27    100644  618       `
/*
 * slsprint()
 */
#include <stdio.h>
#include "slslist.h"
#include "yesno.h"

#define KEYSIZE 10
#define STRSIZE 128

char *PGN = "Tslsprint";

main()
{
	char key[KEYSIZE];		/* key to be added */
	char *slsprepend();		/* prepend key+string */
	char string[STRSIZE];		/* key to be added */
	SLSLIST *slsinit();		/* initialize list */
	SLSLIST *slslist;		/* pointer to list head block */
	void slsprint();		/* print list */

	slslist = slsinit();
	while (scanf("%s%s", key, string) != EOF)
		slsprepend(key, string, slslist);
	slsprint(5, 16, YES, stdout, slslist);
	slsprint(8, 10, NO, stdout, slslist);
	exit(0);
}