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 […]
Category: I/O Karakter Fonksiyonları
puts
2.12.5.10 puts Declaration: int puts(const char *str); Writes a string to stdout up to but not including the null character. A newline character is appended to the output. On success a nonnegative value is returned. On error EOF is returned. Faydalı Yetersiz
putchar
2.12.5.9 putchar Declaration: int putchar(int char); Writes a character (an unsigned char) specified by the argument char to stdout. On success the character is returned. If an error occurs, the error indicator for the stream is set and EOF is returned. Faydalı Yetersiz
putc
2.12.5.8 putc Declaration: int putc(int char, FILE *stream); Writes a character (an unsigned char) specified by the argument char to the specified stream and advances the position indicator for the stream. This may be a macro version of fputc. On success the character is returned. If an error occurs, the error indicator for the stream is set and EOF is returned. Faydalı […]
gets
2.12.5.7 gets Declaration: char *gets(char *str); Reads a line from stdin and stores it into the string pointed to by str. It stops when either the newline character is read or when the end-of-file is reached, whichever comes first. The newline character is not copied to the string. A null character is appended to the end of the […]
getchar
2.12.5.6 getchar Declaration: int getchar(void); Gets a character (an unsigned char) from stdin. On success the character is returned. If the end-of-file is encountered, then EOF is returned and the end-of-file indicator is set. If an error occurs then the error indicator for the stream is set and EOF is returned. Faydalı Yetersiz
getc
2.12.5.5 getc Declaration: int getc(FILE *stream); Gets the next character (an unsigned char) from the specified stream and advances the position indicator for the stream. This may be a macro version of fgetc. On success the character is returned. If the end-of-file is encountered, then EOF is returned and the end-of-file indicator is set. If an error occurs then […]
fputs
2.12.5.4 fputs Declaration: int fputs(const char *str, FILE *stream); Writes a string to the specified stream up to but not including the null character. On success a nonnegative value is returned. On error EOF is returned. Faydalı Yetersiz
fputc
2.12.5.3 fputc Declaration: int fputc(int char, FILE *stream); Writes a character (an unsigned char) specified by the argument char to the specified stream and advances the position indicator for the stream. On success the character is returned. If an error occurs, the error indicator for the stream is set and EOF is returned. Faydalı Yetersiz
fgets
2.12.5.2 fgets Declaration: char *fgets(char *str, int n, FILE *stream); Reads a line from the specified stream and stores it into the string pointed to by str. It stops when either (n-1) characters are read, the newline character is read, or the end-of-file is reached, whichever comes first. The newline character is copied to the string. A […]