Back to index

glibc  2.9
Functions
strpbrk.c File Reference

Go to the source code of this file.

Functions

char * strpbrk (char *s, const char *accept) const

Function Documentation

char* strpbrk ( char *  s,
const char *  accept 
) const

Definition at line 31 of file strpbrk.c.

{
  while (*s != '\0')
    {
      const char *a = accept;
      while (*a != '\0')
       if (*a++ == *s)
         return (char *) s;
      ++s;
    }

  return NULL;
}

Here is the call graph for this function: