Go to the previous, next section.

read

SYNOPSIS

int read(int fd, char *buf, size_t count);

PARAMETERS

fd: [in] the file descriptor to read from.

buf: [out] the buffer that will contain information read.

count: [in] the maximal size of buf.

DESCRIPTION

Reads up to count bytes into buf from fd.

RETURN VALUE

On success zero is returned. On error, -1 is returned and errno is set to one of the following values:

Go to the previous, next section.