wcwidth

Determines the number of printing positions on a display device required for the specified wide character.

Format

#include  <wchar.h>

int wcwidth  (wchar_t wc);

Arguments

wc
A wide character.

Description

This function determines the number of column positions needed for the specified wide character wc. The value of wc must be a valid wide character in the current locale.

Return Values
The number of printing positions required for wc
If wc is a null character. 
- 1  Indicates that wc does not represent a valid printing wide character. 


Previous Page | Next Page | Table of Contents | Index