.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, David Metcalfe .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH strspn 3 "25 Febrero 2026" "Linux man\-pages 6.18" .SH NOMBRE strspn, strcspn \- obtiene la longitud de una subcadena prefijo .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP,\ \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBsize_t strspn(const char *\fP\fIs\fP\fB, const char *\fP\fIaccepta\fP\fB);\fP \fBsize_t strcspn(const char *\fP\fIs\fP\fB, const char *\fP\fIrechaza\fP\fB);\fP .fi .SH DESCRIPCIÓN .TP \fBstrspn\fP() La función \fBstrspn\fP() calcula la longitud del segmento inicial (en bytes ) de \fIs\fP que consta únicamente de caracteres en \fIacepta\fP. .TP \fBstrcspn\fP() La función \fBstrcspn\fP() calcula la longitud del segmento inicial de \fIs\fP que consta únicamente de bytes que no aparecen en \fIrechaza\fP. .IP It is equivalent to .IP .in +4n .EX (strpbrk(s, reject) ?: strnul(s)) \- s .EE .in .SH "VALOR DEVUELTO" La función \fBstrspn\fP() devuelve el número de caracteres del segmento inicial de \fIs\fP que contiene sólo bytes perteneciantes a \fIacepta\fP. .P La función \fBstrcspn\fP() devuelve el número de caracteres del segmento inicial de \fIs\fP que consta únicamente de caracteres que no están en \fIrechaza\fP. .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 \fBstrspn\fP(), \fBstrcspn\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001, C89, SVr4, 4.3BSD. .SH "VÉASE TAMBIÉN" \fBmemchr\fP(3), \fBstrchr\fP(3), \fBstring\fP(3), \fBstrpbrk\fP(3), \fBstrsep\fP(3), \fBstrstr\fP(3), \fBstrtok\fP(3), \fBwcscspn\fP(3), \fBwcsspn\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 .