wcswidth(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

wcswidth(3c)

wcswidth(3C)             Standard C Library Functions             wcswidth(3C)

NAME
       wcswidth - number of column positions of a wide-character string

SYNOPSIS
       #include <wchar.h>

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

DESCRIPTION
       The  wcswidth()  function determines the number of column positions re‐
       quired for n wide-character codes (or fewer than n wide-character codes
       if a null wide-character code is encountered  before  n  wide-character
       codes are exhausted) in the string pointed to by pwcs.

RETURN VALUES
       The  wcswidth()  function  either  returns  0 (if pwcs points to a null
       wide-character code), or returns the number of column positions  to  be
       occupied by the wide-character string pointed to by pwcs, or returns −1
       (if  any  of  the  first  n  wide-character codes in the wide-character
       string pointed to by pwcs is not a printing wide-character code).

ERRORS
       No errors are defined.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ CSIEnabled _ Interface StabilityCommitted _ MT-LevelMT-
       Safe _ StandardSee standards(7).


SEE ALSO
       setlocale(3C), wcwidth(3C), attributes(7), standards(7)


       Handling Characters and Character Strings in Internationalizing and Lo‐
       calizing Applications in Oracle Solaris

HISTORY
       The  wcswidth()  function  was  added to Solaris in the Solaris 2.4 re‐
       lease.

Oracle Solaris 11.4               25 Nov 2024                     wcswidth(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3