File:  [CSRG BSD Unix] / 43BSDTahoe / new / spms / include / slslist.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

/* $Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/spms/include/slslist.h,v 1.1.1.1 2018/04/24 16:12:58 root Exp $ */

/*
 * Singly-linked key+string list definitions
 *
 * Author: Peter J. Nicklin
 */

/*
 * Singly-linked key+string list macros
 */
#define SLSNUM(slslist)	(slslist)->nk
/*
 * Singly-linked key+string list block
 */
typedef struct _slsblk
	{
	char *key;			/* points to key */
	char *string;			/* points to non-key string */
	struct _slsblk *next;		/* ptr to next list block */
	} SLSBLK;
/*
 * Singly-linked key+string list head block
 */
typedef struct _slslisthb
	{
	int nk;				/* number of keys in list */
	int maxkey;			/* length of longest key */
	int maxstr;			/* length of longest non-key string */
	SLSBLK *head;			/* pointer to first list block */
	SLSBLK *curblk;			/* pointer to current block */
	SLSBLK *tail;			/* pointer to last list block */
	} SLSLIST;
/*
 * Functions defined for singly-linked key+string list operations
 */
extern char *slsappend();		/* append key+string */
extern SLSBLK *slsget();		/* get next key+string block */
extern SLSLIST *slsinit();		/* initialize key+string list */
extern char *slsinsert();		/* insert key+string */
extern char *slsprepend();		/* prepend key+string */
extern void slsprint();			/* print key+string list */
extern void slsrewind();		/* rewind key+string list */
extern void slsrm();			/* remove key+string list item */
extern int slssort();			/* sort key+string list */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.