Main index | Section 3 | Options |
#include <wchar.h>
If dst is NULL, no characters are stored.
If dst is not NULL, the pointer pointed to by src is updated to point to the character after the one that conversion stopped at. If conversion stops because a null character is encountered, *src is set to NULL.
The mbstate_t argument, ps, is used to keep track of the shift state. If it is NULL, wcsrtombs() uses an internal, static mbstate_t object, which is initialized to the initial conversion state at program startup.
The wcsnrtombs() function behaves identically to wcsrtombs(), except that conversion stops after reading at most nwc characters from the buffer pointed to by src.
[EILSEQ] | |
An invalid wide character was encountered. | |
[EINVAL] | |
The conversion state is invalid. | |
The wcsnrtombs() function is an extension to the standard.
WCSRTOMBS (3) | July 21, 2004 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | Ken Thompson was once asked by a reporter what he would have changed about Unix if he had it all to do over again. His answer: “I would spell creat with an ‘e.'” | ” |