SCRWIDTH(3) BSD Programmer's Manual SCRWIDTH(3)NAME
scrwidth - return screen width of a character
SYNOPSIS
#include <ctype.h>
int
scrwidth(int c);
DESCRIPTION
The scrwidth() function returns the screen width of a character; the num-
ber of columns that will be used when displaying the character. This is
normally 1 for printable characters and 0 for non-printable characters.
Far East character sets will typically return 2 for ideographs as they
typically consume two columns when displayed.
RETURN VALUES
The scrwidth() function returns the number columns typically used when
displaying the character. It returns 0 for undefined characters.
SEE ALSOctype(3)BSDI BSD/OS March 8, 1997 1