Back to index

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

Go to the source code of this file.

Functions

size_t __wcslen (wchar_t *s) const

Function Documentation

size_t __wcslen ( wchar_t *  s) const

Definition at line 25 of file wcslen.c.

{
  size_t len = 0;

  while (s[len] != L'\0')
    {
      if (s[++len] == L'\0')
       return len;
      if (s[++len] == L'\0')
       return len;
      if (s[++len] == L'\0')
       return len;
      ++len;
    }

  return len;
}

Here is the caller graph for this function: