Back to index

glibc  2.9
Functions
wcscspn.c File Reference
#include <wchar.h>

Go to the source code of this file.

Functions

size_t wcscspn (wchar_t *wcs, const wchar_t *reject) const

Function Documentation

size_t wcscspn ( wchar_t *  wcs,
const wchar_t *  reject 
) const

Definition at line 26 of file wcscspn.c.

{
  register size_t count = 0;

  while (*wcs != L'\0')
    if (wcschr (reject, *wcs++) == NULL)
      ++count;
    else
      return count;

  return count;
}

Here is the call graph for this function: