Void function clearerr (FILE * stream) in Library C deletes end-of-file and error indicator for the given Stream.
The int feof function (FILE * stream) in the standard Library C checks the end-of-file indicator for the given Stream.
The int ferror function (FILE * stream) in Library C checks the error indicator for the given Stream.
The int fflush function (FILE * stream) in Library C flushes the output buffer of a Stream.
The int fgetpos function (FILE * stream, fpos_t * pos) in the C Library standardizes the position of the current file of Stream and writes it to pos.
The function FILE * fopen (const char * filename, const char * mode) in Library C opens the file pointed to the filename parameter by using the given mode.
Function size_t fread (void * ptr, size_t size, size_t nmemb, FILE * stream) in standard C Library reads data from the given stream into the pointed array, by ptr.
Function FILE * freopen (const char * filename, const char * mode, FILE * stream) in Library C attaches a new filename with the given Stream and at the same time closes the old
The function int fseek (FILE * stream, long int offset, int whence) in Standard C library sets the Stream file location to the given offset. The offset parameter specifies the
The function int fsetpos (FILE * stream, const fpos_t * pos) in Library C sets the file location of the stream to the given location. The pos parameter is a location provided by
The function long int ftell (FILE * stream) in standard C Library returns the current file location of the given Stream.
Function size_t fwrite (const void * ptr, size_t size, size_t nmemb, FILE * stream) in Standard C library writes data from the array pointed by ptr to the given Stream.
A Union is a special data in C language that allows you to reserve different data types in the same memory. You can define Union with a lot of parameters, but only one component
Suppose your C program includes a number of TRUE / FALSE variables grouped in a structure called a page to check if the manufactured goods have sufficient width and height allowed.
The C program language provides a typedef keyword, which you can use to provide the type for a new name. Here is an example to define a BYTE entry for 1-byte numbers (like
When we talk about Input, we are talking about input data for the program. It can be provided from the command line or from a certain file. Program C language provides a set of
The previous chapter explained the standard input and output devices handled by the C language. In this chapter we will see how programmers create, open and close text files or
The preprocessor in C here is not part of the compiler, but there are separate steps in the compilation process. In the most basic way, the preprocessor in C language is the text
A file header is a file with the .h format containing function declarations and macro definitions and can be shared across multiple source files. There are two types of file
Type is a way to convert a variable from one data type to another.