Back to index

glibc  2.9
Functions | Variables
wctomb_chk.c File Reference
#include <locale.h>
#include <stdlib.h>
#include <wcsmbs/wcsmbsload.h>

Go to the source code of this file.


int __wctomb_chk (char *s, wchar_t wchar, size_t buflen)


mbstate_t __wctomb_state attribute_hidden

Function Documentation

int __wctomb_chk ( char *  s,
wchar_t  wchar,
size_t  buflen 

Definition at line 28 of file wctomb_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, &__wctomb_state);

Here is the call graph for this function:

Variable Documentation

mbstate_t __wctomb_state attribute_hidden

Definition at line 25 of file init-first.c.