stringlist.h (26924) | stringlist.h (93032) |
---|---|
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 --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 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. | 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 --- 15 unchanged lines hidden (view full) --- 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 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 $ |
|
32 */ 33 34#ifndef _STRINGLIST_H 35#define _STRINGLIST_H 36#include <sys/cdefs.h> 37#include <sys/types.h> 38 39/* 40 * Simple string list 41 */ 42typedef struct _stringlist { 43 char **sl_str; 44 size_t sl_max; 45 size_t sl_cur; 46} StringList; 47 48__BEGIN_DECLS | 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 |
49StringList *sl_init __P((void)); 50void sl_add __P((StringList *, char *)); 51void sl_free __P((StringList *, int)); 52char *sl_find __P((StringList *, char *)); | 51StringList *sl_init(void); 52void sl_add(StringList *, char *); 53void sl_free(StringList *, int); 54char *sl_find(StringList *, char *); |
53__END_DECLS 54 55#endif /* _STRINGLIST_H */ | 55__END_DECLS 56 57#endif /* _STRINGLIST_H */ |