Back to index

glibc  2.9
wcrtomb_chk.c File Reference
#include <langinfo.h>
#include <locale.h>
#include <stdlib.h>
#include <wchar.h>
#include <locale/localeinfo.h>

Go to the source code of this file.


size_t __wcrtomb_chk (char *s, wchar_t wchar, mbstate_t *ps, size_t buflen)

Function Documentation

size_t __wcrtomb_chk ( char *  s,
wchar_t  wchar,
mbstate_t ps,
size_t  buflen 

Definition at line 27 of file wcrtomb_chk.c.

  /* We do not have to implement the full wctomb semantics since we
     know that S cannot be NULL when we come here.  */
  if (buflen < MB_CUR_MAX)
    __chk_fail ();

  return __wcrtomb (s, wchar, ps);

Here is the call graph for this function: