Poster of Linux kernelThe best gift for a Linux geek
FtpSize

FtpSize

Section: C Library Functions (3) Updated: 20 June 1998
Local index Up
 

NAME

FtpSize - Determine size of remote file.  

SYNOPSIS

#include <ftplib.h>

int FtpSize(char *path, int *size, netbuf *nControl);  

PARAMETERS

path
A pointer to a buffer where the result should be returned.
size
A pointer to an int where the size will be returned.
nControl
A handle returned by FtpConnect().
 

DESCRIPTION

FtpSize() attempts to determine the size of a remote file.  

RETURN VALUE

If a good response is received and the size is successfully parsed out of the result, 1 is returned. Otherwise, 0 is returned.

Some servers may not support the SIZE command. If this request fails, the size may be available in the response to a RETR (FtpOpen()with typ=FTPLIB_FILE_READ).


 

Index

NAME
SYNOPSIS
PARAMETERS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 21:46:23 GMT, April 16, 2011