From d9e9dd15aef27c2a7246403ea76898fa1a4c061a Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 20 Aug 1997 04:28:14 +0000 Subject: Update from lite2. --- src/lib/libc/string/strsep.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/lib/libc/string/strsep.c') diff --git a/src/lib/libc/string/strsep.c b/src/lib/libc/string/strsep.c index 09f187b62d..b69b715fc5 100644 --- a/src/lib/libc/string/strsep.c +++ b/src/lib/libc/string/strsep.c @@ -1,6 +1,8 @@ +/* $OpenBSD: strsep.c,v 1.3 1997/08/20 04:28:14 millert Exp $ */ + /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,14 +33,19 @@ * SUCH DAMAGE. */ +#include +#include + #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strsep.c,v 1.2 1996/08/19 08:34:24 tholo Exp $"; +#if 0 +static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; +#else +static char *rcsid = "$OpenBSD: strsep.c,v 1.3 1997/08/20 04:28:14 millert Exp $"; +#endif #endif /* LIBC_SCCS and not lint */ -#include - /* - * Get next token from string *stringp, where tokens are nonempty + * Get next token from string *stringp, where tokens are possibly-empty * strings separated by characters from delim. * * Writes NULs into the string at *stringp to end tokens. @@ -46,7 +53,7 @@ static char *rcsid = "$OpenBSD: strsep.c,v 1.2 1996/08/19 08:34:24 tholo Exp $"; * On return, *stringp points past the last NUL written (if there might * be further tokens), or is NULL (if there are definitely no more tokens). * - * If *stringp is NULL, strtoken returns NULL. + * If *stringp is NULL, strsep returns NULL. */ char * strsep(stringp, delim) -- cgit v1.2.3-55-g6feb