extras_wchar.h

Defines non-standard facilities for wide characters.

  #include <extras/extras_wchar.h> 
  wchar_t *itow(int n, wchar_t *str, int radix); 
  double watof(const wchar_t *str); 
  wchar_t *wcsdup(const wchar_t *str); 
  int wcsicmp(const wchar_t *s1, const wchar_t *s2); 
  int wcsicoll(const wchar_t *s1, const wchar_t *s2); 
  wchar_t *wcslwr(wchar_t *str); 
  int wcsncoll(const wchar_t *s1, const wchar_t *s2, size_t max); 
  int wcsnicmp(const wchar_t *s1, const wchar_t *s2, size_t n); 
  int wcsnicoll(const wchar_t *s1, const wchar_t *s2, size_t max); 
  wchar_t *wcsnset(wchar_t *str, wchar_t wc, size_t n); 
  wchar_t *wcsrev(wchar_t *str); 
  wchar_t *wcsset(wchar_t *str, wchar_t wc); 
  wchar_t *wcsspnp(const wchar_t *s1, const wchar_t *s2); 
  wchar_t *wcsupr(wchar_t *str); 
  wchar_t *wstrrev(wchar_t * str); 
  int wtoi(const wchar_t *a); 
  

These non-standard, wide-character functions operate identically to regular-sized character functions in the rest of the standard library.

The table below matches these wide character functions to equivalent char-based functions.
Table 1. Wide-character Functions Equivalent to Char-based Functions
Function Wide Character Equivalent Header File
itow() itoa() extras_wchar.h
watof() atof() stdlib.h
wcsdup() strdup() extras_wchar.h
wcsicmp() stricmp() extras_wchar.h
wcsicoll() stricoll() extras_wchar.h
wcslwr() strlwr() extras_wchar.h
wcsncoll() strncoll() extras_wchar.h
wcsnicmp() strnicmp() extras_wchar.h
wcsnicoll() strnicoll() extras_wchar.h
wcsnset() strnset() extras_wchar.h
wcsrev() strrev() extras_wchar.h
wcsset() strset() extras_wchar.h
wcsspnp() strspnp() extras_wchar.h
wcsupr() strupr() extras_wchar.h
wstrrev() strrrev() extras_wchar.h
wtoi() atoi() stdlib.h