-

Functions HI-TECH C WRITE

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 00:29, 1 August 2017 by Kumokosi (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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