ftplib_write

Write data to a remote file.

SYNOPSIS

#include <ftplib.h>
int ftplib_write(void *buf, int len, netbuf *rnbp);

PARAMETERS

buf
A buffer containing the data to be sent to the remote file.
len
The number of bytes to be sent from 'buf'.
rnbp
A handle returned by ftplib_access().

DESCRIPTION

ftplib_write() sends data to a remote file. If the file were accessed in record mode, the necessary conversions are performed.

RETURN VALUE

Returns the number of bytes sent from the user's buffer or -1 on error.

$Id: ftplib_write.html,v 1.1 2002/12/02 03:12:52 te Exp $