Back to index

glibc  2.9
Defines | Functions
strcspn.c File Reference
#include <strings.h>

Go to the source code of this file.


#define strchr   index


size_t strcspn (char *s, const char *reject) const

Define Documentation

#define strchr   index

Definition at line 28 of file strcspn.c.

Function Documentation

size_t strcspn ( char *  s,
const char *  reject 
) const

Definition at line 37 of file strcspn.c.

  size_t count = 0;

  while (*s != '\0')
    if (strchr (reject, *s++) == NULL)
      return count;

  return count;