wctomb man page on Ultrix

Man page or keyword search:  
man Server   3690 pages
apropos Keyword Search (all sections)
Output format
Ultrix logo
[printable version]

wctomb(3int)							  wctomb(3int)

Name
       wctomb - converts a character of type wchar_t to a multibyte character.

Syntax
       #include <stdlib.h>

       int wctomb (s, wchar)
       char *s;
       wchar_t wchar;

Arguments
       s       The  s argument is a pointer to the resulting multibyte charac‐
	       ter object.

       wchar   The wchar argument is a value of type wchar_t.

Description
       The function determines the number of bytes  needed  to	represent  the
       multibyte character corresponding to the character code of type wchar_t
       whose value is wchar.  It stores the multibyte character representation
       in  the	array object pointed to by s (if s is not a null pointer).  At
       most MB_CUR_MAX characters are stored.  This function  is  affected  by
       the LC_CTYPE category of the current locale.

Return Value
       If s is a null pointer, the function returns a zero value.  If s is not
       a null pointer, the function returns:

	  ·  - -1, if the value of wchar does not correspond to a valid multi‐
	     bye character

	  ·  The  number of bytes that comprise the multibyte character corre‐
	     sponding to the value of wchar.  In no case is the value returned
	     greater than the value of the MB_CUR_MAX macro.

See Also
       mblen(3int),	mbtowc(3int),	  mbstowcs(3int),     setlocale(3int),
       wcstombs(3int)

								  wctomb(3int)
[top]

List of man pages available for Ultrix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net