ungetc

2.12.5.11 ungetc Declaration: int ungetc(int char, FILE *stream); Pushes the character char (an unsigned char) onto the specified stream so that the this is the next character read. The functions fseek, fsetpos, and rewinddiscard any characters pushed onto the stream. Multiple characters pushed onto the stream are read in a FIFO manner (first in, first out). On success the character pushed is […]

Daha Fazla

scanf Fonksiyonu

2.12.4.2 ..scanf Functions Declarations: int fscanf(FILE *stream, const char *format, …); int scanf(const char *format, …); int sscanf(const char *str, const char *format, …); The ..scanf functions provide a means to input formatted information from a stream. fscanf reads formatted input from a stream scanf reads formatted input from stdin sscanf reads formatted input from […]

Daha Fazla

printf Fonksiyonu

2.12.4.1 ..printf Functions Declarations: int fprintf(FILE *stream, const char *format, …); int printf(const char *format, …); int sprintf(char *str, const char *format, …); int vfprintf(FILE *stream, const char *format, va_list arg); int vprintf(const char *format, va_list arg); int vsprintf(char *str, const char *format, va_list arg); The ..printf functions provide a means to output formatted information to a stream. […]

Daha Fazla

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

fopen

2.12.3.7 fopen Declaration: FILE *fopen(const char *filename, const char *mode); Opens the filename pointed to by filename. The mode argument may be one of the following constant strings: r read text mode w write text mode (truncates file to zero length or creates new file) a append text mode for writing (opens or creates file […]

Daha Fazla