Back to index

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

Go to the source code of this file.

Functions

wchar_t * __wcpcpy_chk (wchar_t *dest, const wchar_t *src, size_t destlen)

Function Documentation

wchar_t* __wcpcpy_chk ( wchar_t *  dest,
const wchar_t *  src,
size_t  destlen 
)

Definition at line 28 of file wcpcpy_chk.c.

{
  do
    if (destlen-- == 0)
      __chk_fail ();
  while ((*dest++ = *src++));

  return dest - 1;
}

Here is the call graph for this function: