.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" and Copyright (C) 2021 Michael Kerrisk .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek and the American National Standards Committee X3, .\" on Information Processing Systems. .\" .\" SPDX-License-Identifier: BSD-4-Clause-UC .\" .\" @(#)ferror.3 6.8 (Berkeley) 6/29/91 .\" .\" .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ferror 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE clearerr, feof, ferror \- comprueban y reestablecen los estados de un flujo de datos .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBvoid clearerr(FILE *\fP\fIflujo\fP\fB);\fP \fBint feof(FILE *\fP\fIflujo\fP\fB);\fP \fBint ferror(FILE *\fP\fIflujo\fP\fB);\fP .fi .SH DESCRIPCIÓN La función \fBclearerr\fP() limpia los indicadores de fin\-de\-fichero y error para el flujo indicado por \fIflujo\fP. .PP La función \fBfeof\fP() inspecciona el indicador de fin\-de\-fichero para el flujo indicado por \fIflujo\fP, devolviendo no cero si está puesto. El indicador de fin\-de\-fichero sólo puede ser limpiado por la función \fBclearerr\fP(). .PP La función \fBferror\fP() inspecciona el indicador de error para el flujo indicado por \fIflujo\fP, devolviendo no cero si está puesto. El indicador de error sólo puede ser puesto a cero por la función \fBclearerr\fP(). .PP Para las versiones no\-bloqueantes, véase \fBunlocked_stdio\fP(3). .SH "VALOR DEVUELTO" The \fBfeof\fP() function returns nonzero if the end\-of\-file indicator is set for \fIstream\fP; otherwise, it returns zero. .PP The \fBferror\fP() function returns nonzero if the error indicator is set for \fIstream\fP; otherwise, it returns zero. .SH ERRORES Estas funciones no debería dar ningún error y por lo tanto, no definen \fIerrno\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 \fBclearerr\fP(), \fBfeof\fP(), \fBferror\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL C89, POSIX.1\-2001. .SH NOTAS .\"https://www.austingroupbugs.net/view.php?id=401 POSIX.1\-2008 specifies that these functions shall not change the value of \fIerrno\fP if \fIstream\fP is valid. .SH ADVERTENCIAS Normally, programs should read the return value of an input function, such as \fBfgetc\fP(3), before using functions of the \fBfeof\fP(3) family. Only when the function returned the sentinel value \fBEOF\fP it makes sense to distinguish between the end of a file or an error with \fBfeof\fP(3) or \fBferror\fP(3). .SH "VÉASE TAMBIÉN" \fBopen\fP(2), \fBfdopen\fP(3), \fBfileno\fP(3), \fBstdio\fP(3), \fBunlocked_stdio\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García , 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 .