STREAM_SET_READ_BUFFER(3) 1 STREAM_SET_READ_BUFFER(3)stream_set_read_buffer - Set read file buffering on the given streamSYNOPSIS
int stream_set_read_buffer (resource $stream, int $buffer)
DESCRIPTION
Sets the read buffer. It's the equivalent of stream_set_write_buffer(3), but for read operations.
PARAMETERS
o $stream
- The file pointer.
o $buffer
- The number of bytes to buffer. If $buffer is 0 then read operations are unbuffered. This ensures that all reads with fread(3)
are completed before other processes are allowed to read from that input stream.
RETURN VALUES
Returns 0 on success, or EOF if the request cannot be honored.
SEE ALSO stream_set_write_buffer(3).
PHP Documentation Group STREAM_SET_READ_BUFFER(3)
Check Out this Related Man Page
GETS(3) Linux Programmer's Manual GETS(3)NAME
fgetc, fgets, getc, getchar, gets, ungetc - input of characters and strings
SYNOPSIS
#include <stdio.h>
int fgetc(FILE *stream);
char *fgets(char *s, int size, FILE *stream);
int getc(FILE *stream);
int getchar(void);
char *gets(char *s);
int ungetc(int c, FILE *stream);
DESCRIPTION
fgetc() reads the next character from stream and returns it as an unsigned char cast to an int, or EOF on end of file or error.
getc() is equivalent to fgetc() except that it may be implemented as a macro which evaluates stream more than once.
getchar() is equivalent to getc(stdin).
gets() reads a line from stdin into the buffer pointed to by s until either a terminating newline or EOF, which it replaces with '