|
|
coherent
write() COHERENT System Call write() Write to a file iinntt wwrriittee(_f_d, _b_u_f_f_e_r, _n) iinntt _f_d; cchhaarr *_b_u_f_f_e_r; iinntt _n; write writes n bytes of data, beginning at address buffer, into the file associated with the file descriptor fd. Writing begins at the current write position, as set by the last call to either write or lseek. write advances the position of the file pointer by the number of characters written. ***** Example ***** For an example of how to use this function, see the entry for open. ***** See Also ***** COHERENT system calls, STDIO ***** Diagnostics ***** write returns -1 if an error occurred before the write operation commenced, such as a bad file descriptor fd or invalid buffer pointer. Otherwise, it returns the number of bytes written. It should be considered an error if this number is not the same as n. ***** Notes ***** write is a low-level call that passes data directly to COHERENT. It should not be mixed with high-level calls, such as fread, fwrite, or fopen. COHERENT Lexicon Page 1
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.