Back to index

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

Go to the source code of this file.


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

Function Documentation

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

Definition at line 33 of file mbstowcs.c.

  mbstate_t state;

  memset (&state, '\0', sizeof state);
  /* Return how many we wrote (or maybe an error).  */
  return __mbsrtowcs (pwcs, &s, n, &state);

Here is the call graph for this function:

Here is the caller graph for this function: