2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
13 char *strsep(char ** __restrict s1, const char * __restrict s2)
15 register char *s = *s1;
20 if (s && *s && (p = strpbrk(s, s2))) {
24 if (s && *s && *(p = s + strcspn(s, s2))) {
33 libc_hidden_def(strsep)