Back to index

glibc  2.9
wcstombs.c File Reference
#include <stdlib.h>
#include <string.h>
#include <wchar.h>

Go to the source code of this file.


size_t wcstombs (char *s, const wchar_t *pwcs, size_t n)

Function Documentation

size_t wcstombs ( char *  s,
const wchar_t *  pwcs,
size_t  n 

Definition at line 28 of file wcstombs.c.

  mbstate_t state;

  memset (&state, '\0', sizeof state);

  /* Return how many we wrote (or maybe an error).  */
  return __wcsrtombs (s, &pwcs, n, &state);

Here is the call graph for this function: