Fixed ZDE build - missing header file
[ZeXOS.git] / libc / string / strpbrk.c
blob738efdc77e360d1f017e90ffc4414b7d0aab86dd
1 /*
2 * ZeX/OS
3 * Copyright (C) 2008 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <string.h>
22 char *strpbrk (char const *cs, char const *ct)
24 const char *sc1;
25 const char *sc2;
27 for (sc1 = cs; *sc1 != '\0'; ++ sc1) {
28 for (sc2 = ct; *sc2 != '\0'; ++ sc2) {
29 if (*sc1 == *sc2)
30 return (char *) sc1;
34 return (char *) 0;