mbtowc()

This function is Hardware-specific implementation. It is not implemented in this Compiler.

Syntax

  #include <stdlib.h>

  
  int mbtowc(wchar_t *wc, const char *s, size_t n);

  
Description

mbtowc() converts a multi-byte character s to a wide character code wc. Only the first n bytes of *s are taken into consideration.

Return

The number of bytes of the multi-byte character converted (size_t) if successful or -1 if an error occurred.

See also

mblen()

mbstowcs()