Back to index

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

Go to the source code of this file.


wchar_t * __wcsncpy_chk (wchar_t *dest, const wchar_t *src, size_t n, size_t destlen)

Function Documentation

wchar_t* __wcsncpy_chk ( wchar_t *  dest,
const wchar_t *  src,
size_t  n,
size_t  destlen 

Definition at line 25 of file wcsncpy_chk.c.

  if (__builtin_expect (destlen < n, 0))
    __chk_fail ();

  /* This function is not often enough used to justify not using a
     tail call.  */
  return __wcsncpy (dest, src, n);

Here is the call graph for this function: