strtows(3C)
NAME
strtows, wstostr − code conversion for Process Code and File Code
SYNOPSIS
#include <widec.h> wchar_t ∗strtows(wchart_t ∗dst, const char ∗src); char ∗wsostr(char ∗dst, const wchart_t ∗src);
DESCRIPTION
strtows() and wstostr() convert strings back and forth between File Code representation and Process Code.
strtows() takes a character string src, converts it to a Process Code string, terminated by a Process Code NULL, and places the result into dst.
wstostr() takes the Process Code string pointed to by src, converts it to a character string, and places the result into dst.
RETURN VALUES
strtows() returns the Process Code string if it completes successfully. Otherwise, a NULL pointer will be returned and errno will be set for the error EILSEQ.
wstostr() returns the File Code string if it completes successfully. Otherwise, a NULL pointer will be returned and errno will be set for the error EILSEQ.
SEE ALSO
SunOS 5.6 — Last change: 20 Dec 1996