Mercurial > noffle
view itemlist.h @ 33:7b6dc86c266d noffle
[svn] Added Db_from, Db_date
author | enz |
---|---|
date | Mon, 01 May 2000 10:22:42 +0100 |
parents | 526a4c34ee2e |
children |
line wrap: on
line source
/* itemlist.h Copy a string wiht a list of separated items (as found in several header lines) and provide a convenient way of accessing the individual items. $Id: itemlist.h 32 2000-04-29 14:45:56Z enz $ */ #ifndef ITEMLIST_H #define ITEMLIST_H #include <sys/types.h> struct ItemList; typedef struct ItemList ItemList; /* Make a new item list. */ ItemList * new_Itl( const char *list, const char *separators ); /* Delete an item list. */ void del_Itl( ItemList *self ); /* Get first item. */ const char * Itl_first( ItemList *self); /* Get next item or NULL. */ const char * Itl_next( ItemList *self ); /* Get count of items in list. */ size_t Itl_count( const ItemList *self ); #endif