stringlist.h (109508) | stringlist.h (249802) |
---|---|
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 109508 2003-01-19 01:16:01Z obrien $ | 33 * $FreeBSD: head/include/stringlist.h 249802 2013-04-23 13:03:03Z eadler $ |
34 */ 35 36#ifndef _STRINGLIST_H 37#define _STRINGLIST_H 38#include <sys/cdefs.h> 39#include <sys/types.h> 40 41/* --- 4 unchanged lines hidden (view full) --- 46 size_t sl_max; 47 size_t sl_cur; 48} StringList; 49 50__BEGIN_DECLS 51StringList *sl_init(void); 52int sl_add(StringList *, char *); 53void sl_free(StringList *, int); | 34 */ 35 36#ifndef _STRINGLIST_H 37#define _STRINGLIST_H 38#include <sys/cdefs.h> 39#include <sys/types.h> 40 41/* --- 4 unchanged lines hidden (view full) --- 46 size_t sl_max; 47 size_t sl_cur; 48} StringList; 49 50__BEGIN_DECLS 51StringList *sl_init(void); 52int sl_add(StringList *, char *); 53void sl_free(StringList *, int); |
54char *sl_find(StringList *, char *); | 54char *sl_find(StringList *, const char *); |
55__END_DECLS 56 57#endif /* _STRINGLIST_H */ | 55__END_DECLS 56 57#endif /* _STRINGLIST_H */ |