Synopsis:
sys_fhwritebuf(file_handle,buf_handle,num_bytes)
Arguments:
file_handle - The file handle to write tom
buf_handle - The buffer handle of the buffer to write the data from
num_bytes - The number of bytes to write.
Description: This function attempts to write num_bytes bytes to the given file_handle from the specified. The buf_handle is a handle to a 1Kbyte buffer returned from a call to sys_bufuse().
The maximum number of bytes that can be written is 1024 (the maximum size of a buffer).
Return Value
Returns the number of bytes actually written or a negative error code.