stringlist.h (93032) | stringlist.h (109508) |
---|---|
1/* $NetBSD: stringlist.h,v 1.2 1997/01/17 06:11:36 lukem Exp $ */ 2 3/* 4 * Copyright (c) 1994 Christos Zoulas 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* $NetBSD: stringlist.h,v 1.2 1997/01/17 06:11:36 lukem Exp $ */ 2 3/* 4 * Copyright (c) 1994 Christos Zoulas 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/include/stringlist.h 93032 2002-03-23 17:24:55Z imp $ | 33 * $FreeBSD: head/include/stringlist.h 109508 2003-01-19 01:16:01Z obrien $ |
34 */ 35 36#ifndef _STRINGLIST_H 37#define _STRINGLIST_H 38#include <sys/cdefs.h> 39#include <sys/types.h> 40 41/* 42 * Simple string list 43 */ 44typedef struct _stringlist { 45 char **sl_str; 46 size_t sl_max; 47 size_t sl_cur; 48} StringList; 49 50__BEGIN_DECLS 51StringList *sl_init(void); | 34 */ 35 36#ifndef _STRINGLIST_H 37#define _STRINGLIST_H 38#include <sys/cdefs.h> 39#include <sys/types.h> 40 41/* 42 * Simple string list 43 */ 44typedef struct _stringlist { 45 char **sl_str; 46 size_t sl_max; 47 size_t sl_cur; 48} StringList; 49 50__BEGIN_DECLS 51StringList *sl_init(void); |
52void sl_add(StringList *, char *); | 52int sl_add(StringList *, char *); |
53void sl_free(StringList *, int); 54char *sl_find(StringList *, char *); 55__END_DECLS 56 57#endif /* _STRINGLIST_H */ | 53void sl_free(StringList *, int); 54char *sl_find(StringList *, char *); 55__END_DECLS 56 57#endif /* _STRINGLIST_H */ |