Scroll to navigation

fcloseall(3) Library Functions Manual fcloseall(3)

NOMBRE

fcloseall - cierra todos los flujos abiertos

BIBLIOTECA

Biblioteca Estándar C (libc, -lc)

SINOPSIS

#define _GNU_SOURCE         /* Vea feature_test_macros(7) */
#include <stdio.h>
int fcloseall(void);

DESCRIPCIÓN

The fcloseall() function closes all of the calling process's open streams. Buffered output for each stream is written before it is closed (as for fflush(3)); buffered input is discarded.

También se cierran los flujos estándar: stdin, stdout y stderr.

VALOR DEVUELTO

La función devuelve cero si se han cerrado todos los archivos. Si sucedió algún error, se devuelve EOF.

ATRIBUTOS

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
fcloseall() Seguridad del hilo MT-Unsafe race:streams

The fcloseall() function does not lock the streams, so it is not thread-safe.

ESTÁNDARES

GNU.

VÉASE TAMBIÉN

close(2), fclose(3), fflush(3), fopen(3), setbuf(3)

TRADUCCIÓN

La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars <mpi79470@alu.um.es> y Marcos Fouces <marcos@debian.org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

20 ​​Julio 2023 Páginas de manual de Linux 6.05.01