FCLOSE.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- FCLOSE(3) Minix Programmer's Manual FCLOSE(3)
- NAME
- fclose, fflush - close or flush a stream
- SYNOPSIS
- #include <stdio.h>
- int fclose(FILE *stream)
- int fflush(FILE *stream)
- DESCRIPTION
- Fclose causes any buffers for the named stream to be emptied, and the
- file to be closed. Buffers allocated by the standard input/output system
- are freed.
- Fclose is performed automatically upon calling exit(3).
- Fflush causes any buffered data for the named output stream to be written
- to that file. The stream remains open.
- SEE ALSO
- close(2), fopen(3), setbuf(3).
- DIAGNOSTICS
- These routines return EOF if stream is not associated with an output
- file, or if buffered data cannot be transferred to that file.
- May 15, 1985 1