31 lines
838 B
C
31 lines
838 B
C
static char sccsid[] = "@(#)58 1.2.1.2 src/bos/usr/ccs/lib/libc/wcwidth.c, libccppc, bos411, 9428A410j 1/12/93 11:21:02";
|
|
/*
|
|
* COMPONENT_NAME: LIBCCPPC
|
|
*
|
|
* FUNCTIONS: wcwidth
|
|
*
|
|
* ORIGINS: 27
|
|
*
|
|
* This module contains IBM CONFIDENTIAL code. -- (IBM
|
|
* Confidential Restricted when combined with the aggregated
|
|
* modules for this product)
|
|
* SOURCE MATERIALS
|
|
* (C) COPYRIGHT International Business Machines Corp. 1991 , 1992
|
|
* All Rights Reserved
|
|
*
|
|
* US Government Users Restricted Rights - Use, duplication or
|
|
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
|
|
*
|
|
*/
|
|
#include <sys/lc_sys.h>
|
|
#include <stdlib.h>
|
|
#include <ctype.h>
|
|
|
|
/*
|
|
returns the number of characters for a SINGLE-BYTE codeset
|
|
*/
|
|
int wcwidth(wchar_t wc)
|
|
{
|
|
return _CALLMETH(__lc_charmap, __wcwidth)(__lc_charmap, wc);
|
|
}
|