Loading...
--- Libc/Libc-1725.40.4/gen/FreeBSD/stringlist.c
+++ Libc/Libc-320/gen/FreeBSD/stringlist.c
@@ -10,6 +10,9 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by Christos Zoulas.
* 4. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
@@ -30,7 +33,7 @@
static char *rcsid = "$NetBSD: stringlist.c,v 1.2 1997/01/17 07:26:20 lukem Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/lib/libc/gen/stringlist.c,v 1.8 2007/01/09 00:27:55 imp Exp $");
+__FBSDID("$FreeBSD: src/lib/libc/gen/stringlist.c,v 1.7 2003/01/19 01:16:01 obrien Exp $");
#include "namespace.h"
#include <stdio.h>
@@ -46,7 +49,7 @@
* sl_init(): Initialize a string list
*/
StringList *
-sl_init(void)
+sl_init()
{
StringList *sl;
@@ -67,7 +70,9 @@
* sl_add(): Add an item to the string list
*/
int
-sl_add(StringList *sl, char *name)
+sl_add(sl, name)
+ StringList *sl;
+ char *name;
{
if (sl->sl_cur == sl->sl_max - 1) {
sl->sl_max += _SL_CHUNKSIZE;
@@ -84,7 +89,9 @@
* sl_free(): Free a stringlist
*/
void
-sl_free(StringList *sl, int all)
+sl_free(sl, all)
+ StringList *sl;
+ int all;
{
size_t i;
@@ -104,7 +111,9 @@
* sl_find(): Find a name in the string list
*/
char *
-sl_find(StringList *sl, char *name)
+sl_find(sl, name)
+ StringList *sl;
+ char *name;
{
size_t i;