1// Copyright 2016 The Fuchsia Authors 2// Copyright (c) 2008 Travis Geiselbrecht 3// 4// Use of this source code is governed by a MIT-style 5// license that can be found in the LICENSE file or at 6// https://opensource.org/licenses/MIT 7 8#include <string.h> 9#include <sys/types.h> 10 11char * 12strpbrk(char const *cs, char const *ct) 13{ 14 const char *sc1; 15 const char *sc2; 16 17 for (sc1 = cs; *sc1 != '\0'; ++sc1) { 18 for (sc2 = ct; *sc2 != '\0'; ++sc2) { 19 if (*sc1 == *sc2) 20 return (char *)sc1; 21 } 22 } 23 24 return NULL; 25} 26