mblen(3) Library Functions Manual mblen(3) NOMBRE mblen - determina el numero de bytes del siguiente caracter multibyte BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include int mblen(const char s[.n], size_t n); DESCRIPCION If s is not NULL, the mblen() function inspects at most n bytes of the multibyte string starting at s and extracts the next complete multibyte character. It uses a static anonymous shift state known only to the mblen() function. If the multibyte character is not the null wide character, it returns the number of bytes that were consumed from s. If the multibyte character is the null wide character, it returns 0. If the n bytes starting at s do not contain a complete multibyte character, mblen() returns -1. This can happen even if n is greater than or equal to MB_CUR_MAX, if the multibyte string contains redundant shift sequences. Si la cadena multibyte s contiene una secuencia multibyte invalida antes del siguiente caracter completo, mblen() tambien devuelve -1. If s is NULL, the mblen() function resets the shift state, known to only this function, to the initial state, and returns nonzero if the encoding has nontrivial shift state, or zero if the encoding is stateless. VALOR DEVUELTO La funcion mblen() devuelve el numero de bytes recorridos de la secuencia multibyte s, si encuentra un caracter ancho no nulo. Devuelve 0 si encuentra un caracter ancho nulo. Devuelve -1 si encuentra una secuencia mulitbyte invalida o si no pudo recorrer un caracter multibyte completo. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-------------------------+--------------------+-----------------------+ |Interfaz | Atributo | Valor | +-------------------------+--------------------+-----------------------+ |mblen() | Seguridad del hilo | MT - Carrera insegura | +-------------------------+--------------------+-----------------------+ VERSIONES La funcion mbrlen(3) proporciona una interfaz mejor con la misma funcionalidad. ESTANDARES C11, POSIX.1-2008. HISTORIAL POSIX.1-2001, C99. NOTAS El comportamiento de mblen() depende de la categoria LC_CTYPE de la localizacion actual. VEASE TAMBIEN mbrlen(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia y Juan Piernas Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 mblen(3)