ftplib_get

Retreive a file from the remote system.

SYNOPSIS

#include <ftplib.h>
int ftplib_get(const char *output, const char *path, char mode, netbuf *nbp);

PARAMETERS

output
Name of a local file to receive the contents of the remote file.
path
Name of remote file to be retrieved.
mode
Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE.
nbp
A handle returned by ftplib_connect().

DESCRIPTION

ftplib_get() copies the contents of a remote file to a local file.

RETURN VALUE

Returns 1 if successful or 0 on error.

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