write()

This function is used for writing into the specified file or pipe whose descriptor is supplied. Here is its syntax:

write(int fp, const void *buf, size_t n);

It writes the n number of bytes into the file that's being pointed to by the file pointer, fp, from the buffer, buf.