-

Difference between revisions of "Functions HI-TECH C WRITE"

From HI-TECH C for CP/M Fan WIKI(EN)
Jump to: navigation, search
(Created page with "<strong>WRITE</strong> ==SYNOPSIS== #include <unixio.h> int write(int fd, void * buf, size_t cnt) ==DESCRIPTION== <strong>Write</strong>() will write from the buffer a...")
 
(No difference)

Latest revision as of 00:29, 1 August 2017

WRITE

SYNOPSIS

#include  <unixio.h>

int write(int fd, void * buf, size_t cnt)


DESCRIPTION

Write() will write from the buffer at buf up to cnt bytes to the file associated with the file descriptor fd. The number of bytes actually written will be returned. EOF or a value less than cnt will be returned on error. In any case, any return value not equal to cnt should be treated as an error (cf. read() ).

SEE ALSO

open, close, read