XgCrtLowio


Functions

int _write_P (int fd, PGM_P data, unsigned int count)
 Writes data from program space to a file, device or socket.

Function Documentation

int _write_P ( int  fd,
PGM_P  data,
unsigned int  count 
)

Writes data from program space to a file, device or socket.

Similar to _write() except that the data is located in program memory.

Parameters:
fd Descriptor of a previously opened file, device or connected socket.
data Pointer to data in program space to be written.
count Number of bytes to write.
Returns:
The number of bytes written, which may be less than the number of bytes specified. A return value of -1 indicates an error.
Note:
The write implementation of the underlying driver does not need to be thread-safe. Parallel writes using device usartavr will lead to intermixed data (if data doesn't fit into ringbuffer on the first try )

Definition at line 79 of file write_p.c.

References _NUTFILE::nf_dev.

Referenced by fputs_P(), and fwrite_P().


Generated on Sun Aug 31 13:31:35 2008 for FrankenRTOS by  doxygen 1.5.6