-/* $OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */
+/* $OpenBSD: strsep.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */
/*-
* Copyright (c) 1990, 1993
* SUCH DAMAGE.
*/
+/* OPENBSD ORIGINAL: lib/libc/string/strsep.c */
+
#include "includes.h"
#if !defined(HAVE_STRSEP)
#include <string.h>
#include <stdio.h>
-#if defined(LIBC_SCCS) && !defined(lint)
-#if 0
-static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93";
-#else
-static char *rcsid = "$OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $";
-#endif
-#endif /* LIBC_SCCS and not lint */
-
/*
* Get next token from string *stringp, where tokens are possibly-empty
* strings separated by characters from delim.
char *
strsep(char **stringp, const char *delim)
{
- register char *s;
- register const char *spanp;
- register int c, sc;
+ char *s;
+ const char *spanp;
+ int c, sc;
char *tok;
if ((s = *stringp) == NULL)