wcwidth

Computes the number of column positions required by a wide-character code.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  int  wcwidth (
     wchar_t   wc);
  

Parameters

wc

(IN) Points to the wide character.

Return Values

If successful, returns the number of column positions that the specified wide character requires. Otherwise, returns 0 if wc is a null-terminating wide-character code or -1 if wc does not correspond to a printable wide-character code.

See Also

wcswidth