Back to index

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

Go to the source code of this file.

Functions

wchar_t * wcschr (const wchar_t *wcs, const wchar_t wc)

Function Documentation

wchar_t* wcschr ( const wchar_t *  wcs,
const wchar_t  wc 
)

Definition at line 24 of file wcschr.c.

{
  do
    if (*wcs == wc)
      return (wchar_t *) wcs;
  while (*wcs++ != L'\0');

  return NULL;
}