*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> wcswidth (3)              
Title
Content
Arch
Section
 

WCSWIDTH(3)

Contents


NAME    [Toc]    [Back]

     wcswidth -- number of column positions in wide-character string

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <wchar.h>

     int
     wcswidth(const wchar_t *pwcs, size_t n);

DESCRIPTION    [Toc]    [Back]

     The wcswidth() function determines the number of column positions
     required for the first n characters of pwcs, or until a null wide character
 (L'\0') is encountered.

RETURN VALUES    [Toc]    [Back]

     The wcswidth() function returns 0 if pwcs is an empty string (L""), -1 if
     a non-printing wide character is encountered, otherwise it returns the
     number of column positions occupied.

SEE ALSO    [Toc]    [Back]

      
      
     iswprint(3), wcwidth(3)

STANDARDS    [Toc]    [Back]

     The wcswidth() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').


FreeBSD 5.2.1			August 20, 2002 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
wcwidth FreeBSD number of column positions of a wide-character code
wcstod IRIX convert wide-character string to double-precision number
mbsrtowcs NetBSD converts a multibyte character string to a wide character string (restartable)
wcsrtombs NetBSD converts a wide character string to a multibyte character string (restartable)
wcsspn Linux advance in a wide-character string, skipping any of a set of wide characters
wcspbrk Linux search a wide-character string for any of a set of wide characters
wcscspn Linux search a wide-character string for any of a set of wide characters
wcschr Linux search a wide character in a wide-character string
wcsrchr Linux search a wide character in a wide-character string
mbsrtowcs FreeBSD convert a character string to a wide-character string (restartable)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service