tmpnam

2.12.3.20 tmpnam Declaration: char *tmpnam(char *str); Generates and returns a valid temporary filename which does not exist. Up to TMP_MAX different filenames can be generated. If the argument str is a null pointer, then the function returns a pointer to a valid filename. If the argument str is a valid pointer to an array, then the filename is written to the […]

Daha Fazla

tmpfile

2.12.3.19 tmpfile Declaration: FILE *tmpfile(void); Creates a temporary file in binary update mode (wb+). The tempfile is removed when the program terminates or the stream is closed. On success a pointer to a file stream is returned. On error a null pointer is returned. Faydalı Yetersiz

Daha Fazla

setvbuf

2.12.3.18 setvbuf Declaration: int setvbuf(FILE *stream, char *buffer, int mode, size_t size); Defines how a stream should be buffered. This should be called after the stream has been opened but before any operation has been done on the stream. The argument mode defines how the stream should be buffered as follows: _IOFBF Input and output is fully buffered. If […]

Daha Fazla

setbuf

2.12.3.17 setbuf Declaration: void setbuf(FILE *stream, char *buffer); Defines how a stream should be buffered. This should be called after the stream has been opened but before any operation has been done on the stream. Input and output is fully buffered. The default BUFSIZ is the size of the buffer. The argument buffer points to an array to be […]

Daha Fazla

rewind

2.12.3.16 rewind Declaration: void rewind(FILE *stream); Sets the file position to the beginning of the file of the given stream. The error and end-of-file indicators are reset. Faydalı Yetersiz

Daha Fazla

rename

2.12.3.15 rename Declaration: int rename(const char *old_filename, const char *new_filename); Causes the filename referred to by old_filename to be changed to new_filename. If the filename pointed to by new_filename exists, the result is implementation-defined. On success zero is returned. On error a nonzero value is returned and the file is still accessible by its old filename. Faydalı Yetersiz

Daha Fazla

remove

2.12.3.14 remove Declaration: int remove(const char *filename); Deletes the given filename so that it is no longer accessible (unlinks the file). If the file is currently open, then the result is implementation-defined. On success zero is returned. On failure a nonzero value is returned. Faydalı Yetersiz

Daha Fazla

fwrite

2.12.3.13 fwrite Declaration: size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); Writes data from the array pointed to by ptr to the given stream. It writes nmemb number of elements of size size. The total number of bytes written is (size*nmemb). On success the number of elements writen is returned. On error the total number of elements successfully writen (which […]

Daha Fazla

ftell

2.12.3.12 ftell Declaration: long int ftell(FILE *stream); Returns the current file position of the given stream. If it is a binary stream, then the value is the number of bytes from the beginning of the file. If it is a text stream, then the value is a value useable by the fseek function to return […]

Daha Fazla

fsetpos

2.12.3.11 fsetpos Declaration: int fsetpos(FILE *stream, const fpos_t *pos); Sets the file position of the given stream to the given position. The argument pos is a position given by the function fgetpos. The end-of-file indicator is cleared. On success zero is returned. On error a nonzero value is returned and the variable errno is set. Faydalı Yetersiz

Daha Fazla