Scroll to navigation

wcwidth(3) Library Functions Manual wcwidth(3)

NOMBRE

wcwidth - determina las columnas necesarias para un carácter ancho

BIBLIOTECA

Biblioteca Estándar C (libc-lc)

SINOPSIS

#define _XOPEN_SOURCE       /* Vea feature_test_macros(7) */
#include <wchar.h>
int wcwidth(wchar_t wc);

DESCRIPCIÓN

The wcwidth() function returns the number of columns needed to represent the wide character wc. If wc is a printable wide character, the value is at least 0. If wc is null wide character (L'\0'), the value is 0. Otherwise, -1 is returned.

VALOR DEVUELTO

The wcwidth() function returns the number of column positions for wc.

ATRIBUTOS

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
wcwidth() Seguridad del hilo Configuración regional de multi-hilo seguro

ESTÁNDARES

POSIX.1-2008.

HISTORIAL

POSIX.1-2001.

Note that before glibc 2.2.5, glibc used the prototype

int wcwidth(wint_t wc);

NOTAS

El comportamiento de wcwidth() depende de la categoría LC_CTYPE de la localización actual.

VÉASE TAMBIÉN

iswprint(3), wcswidth(3)

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Pedro Pablo Fábrega <pfabrega@arrakis.es> y Juan Piernas <piernas@ditec.um.es>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

17 Mayo 2025 Páginas de Manual de Linux (no publicadas)