xref: /illumos-gate/usr/src/man/man3c/strtows.3c (revision 2bbdd445a21f9d61f4a0ca0faf05d5ceb2bd91f3)
te
Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
STRTOWS 3C "Dec 20, 1996"
NAME
strtows, wstostr - code conversion for Process Code and File Code
SYNOPSIS

#include <widec.h>

wchar_t *strtows(wchar_t *dst, char *src);

char *wstostr(char *dst, wchar_t *src);
DESCRIPTION

The strtows() and wstostr() functions convert strings back and forth between File Code representation and Process Code.

The strtows() function takes a character string src, converts it to a Process Code string, terminated by a Process Code null, and places the result into dst.

The wstostr() function takes the Process Code string pointed to by src, converts it to a character string, and places the result into dst.

RETURN VALUES

The strtows() function returns the Process Code string if it completes successfully. Otherwise, a null pointer will be returned and errno will be set to EILSEQ.

The wstostr() function returns the File Code string if it completes successfully. Otherwise, a null pointer will be returned and errno will be set to EILSEQ.

SEE ALSO

wstring(3C)