Linux-fopen-fclose-fread-fwrite and other functions
Clearerr (error flag for clearing file streams)
Related functions
Feof
Header file
# Include
Define functions
Void clearerr (File * stream );
Function Description
Clearerr () clears the error
In the morning I heard people say that part of a program is a kernel state, the other part is User state, how it needs to be. Suddenly wanted to know, the user's program can call the kernel function directly. (now suddenly found that the problem is
Fgets (read a string from the file)Related functions: open, fread, fscanf, GETCHeader file include Define the function char * fgets (char * s, int size, file * stream );Function Description: fgets () is used to read characters from the file referred
File Input and Output Functions
Keyboard, display, printer, disk drive, and other logical devices.
Component Management Method. In programming, the most commonly used disk files are used. Therefore, this section mainly uses
Disk Files are the main
The file system on Linux is generally EXT2 or EXT3, but this article is not ready to talk about them directly, but I want to combine the Linux operating system and from the foundation of the file system-the hard disk to start, step-by-step
Windows can support both FAT32 and NTFS two file systems, FAT32 is longer than compatibility, and NTFS is longer than system security. Under the premise of satisfying the application, how to set up the file system to give full play to the features
Common Linux C functions-File Content operations-general Linux technology-Linux programming and kernel information. For more information, see the following. Clearerr (error flag for clearing file streams)
Feof
Header file # include
Define the
Clearerr (error flag for clearing file streams)FeofHeader file # include Define the void clearerr (File * stream) function );Function Description clearerr () clears the error flag used by the file stream specified by the stream parameter.Return
Click Back to learn the path of the Linux command line and shell script1.3-linux File SystemA file system is an organization method that files reside on storage devices such as disks. Linux systems can support a variety of currently popular file
Clearerr (error flag for clearing file streams)FeofHeader file # include Define the void clearerr (File * stream) function );Function Description clearerr () clears the error flag used by the file stream specified by the stream parameter.Return
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.