ferror(3) Library Functions Manual ferror(3) NOMBRE clearerr, feof, ferror - comprueban y reestablecen los estados de un flujo de datos BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include void clearerr(FILE *flujo); int feof(FILE *flujo); int ferror(FILE *flujo); DESCRIPCION La funcion clearerr() limpia los indicadores de fin-de-fichero y error para el flujo indicado por flujo. La funcion feof() inspecciona el indicador de fin-de-fichero para el flujo indicado por flujo, devolviendo no cero si esta puesto. El indicador de fin-de-fichero solo puede ser limpiado por la funcion clearerr(). La funcion ferror() inspecciona el indicador de error para el flujo indicado por flujo, devolviendo no cero si esta puesto. El indicador de error solo puede ser puesto a cero por la funcion clearerr(). Para las versiones no-bloqueantes, vease unlocked_stdio(3). VALOR DEVUELTO The feof() function returns nonzero if the end-of-file indicator is set for stream; otherwise, it returns zero. The ferror() function returns nonzero if the error indicator is set for stream; otherwise, it returns zero. ERRORES Estas funciones no deberia dar ningun error y por lo tanto, no definen errno. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |clearerr(), feof(), ferror() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES C11, POSIX.1-2008. HISTORIAL C89, POSIX.1-2001. NOTAS POSIX.1-2008 specifies that these functions shall not change the value of errno if stream is valid. ADVERTENCIAS Normally, programs should read the return value of an input function, such as fgetc(3), before using functions of the feof(3) family. Only when the function returned the sentinel value EOF it makes sense to distinguish between the end of a file or an error with feof(3) or ferror(3). VEASE TAMBIEN open(2), fdopen(3), fileno(3), stdio(3), unlocked_stdio(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia , Miguel Perez Ibars y Marcos Fouces 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 ferror(3)