.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:12:45 1993 by Rik Faith (faith@cs.unc.edu) .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH strcasecmp 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE strcasecmp, strncasecmp \- comparan dos cadenas sin distinguir entre mayúsculas o minúsculas .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBint strcasecmp(const char *\fP\fIs1\fP\fB, const char *\fP\fIs2\fP\fB);\fP \fBint strncasecmp(const char \fP\fIs1\fP\fB[.\fP\fIn\fP\fB], const char \fP\fIs2\fP\fB[.\fP\fIn\fP\fB], size_t \fP\fIn\fP\fB);\fP .fi .SH DESCRIPCIÓN La función \fBstrcasecmp\fP() compara byte a byte las dos cadenas \fIs1\fP y \fIs2\fP, sin distinguir entre mayúsculas y minúsculas. Devuelve un entero menor , igual o mayor que cero si se encuentra \fIs1\fP, respectivamente, es menor, igual, o mayor que \fIs2\fP. .PP La función \fBstrncasecmp\fP() es similar, excepto que sólo compara los primeros caracteres \fIn\fP de \fIs1\fP y \fIs2\fP. .SH "VALOR DEVUELTO" The \fBstrcasecmp\fP() and \fBstrncasecmp\fP() functions return an integer less than, equal to, or greater than zero if \fIs1\fP is, after ignoring case, found to be less than, to match, or be greater than \fIs2\fP, respectively. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBstrcasecmp\fP(), \fBstrncasecmp\fP() T} Seguridad del hilo Configuración regional de multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL 4.4BSD, POSIX.1\-2001. .PP The \fBstrcasecmp\fP() and \fBstrncasecmp\fP() functions first appeared in 4.4BSD, where they were declared in \fI\fP. Thus, for reasons of historical compatibility, the glibc \fI\fP header file also declares these functions, if the \fB_DEFAULT_SOURCE\fP (or, in glibc 2.19 and earlier, \fB_BSD_SOURCE\fP) feature test macro is defined. .PP El estándar POSIX.1\-2008 dice de estas funciones: .PP .RS When the \fBLC_CTYPE\fP category of the locale being used is from the POSIX locale, these functions shall behave as if the strings had been converted to lowercase and then a byte comparison performed. Otherwise, the results are unspecified. .RE .SH "VÉASE TAMBIÉN" \fBmemcmp\fP(3), \fBstrcmp\fP(3), \fBstrcoll\fP(3), \fBstring\fP(3), \fBstrncmp\fP(3), \fBwcscasecmp\fP(3), \fBwcsncasecmp\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars y Marcos Fouces . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .