strtows(3scl)strtows(3scl)NAME
strtows, wstostr - convert between wide and multi-byte character
strings
LIBRARY
SCL Miscellaneous Library (libsolmisc.so, libsolmisc.a)
SYNOPSIS
#include <widec.h>
wchar_t *strtows(wchar_t *dst,
const char *src);
char *wstostr(char *dst,
const wchar_t *src);
PARAMETERS
Pointer to buffer for receiving converted string Pointer to buffer con‐
taining string to be converted
DESCRIPTION
The strtows() function converts a multi-byte (File Code) string to a
wide-character (Process Code) string.
The wstostr() function converts a wide-character string to a multi-byte
string.
SCL IMPLEMENTATION NOTES
It is assumed that the buffer pointed to by the dst parameter is suffi‐
ciently large to contain the converted string.
These functions are implemented by calling the mbstowcs(3) and
wcstombs(3) functions.
RETURN VALUES
Both functions return a pointer to the converted string if successful,
otherwise they return NULL, with errno set to EILSEQ.
ERRORS
The source buffer contains an invalid character.
RELATED INFORMATION
Functions: mbstowcs(3), wcstombs(3)
Manual: Solaris Compatibility Library User's Guide
strtows(3scl)