Defines | Functions
ftpupload.c File Reference
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
Include dependency graph for ftpupload.c:

Go to the source code of this file.

Defines

#define LOCAL_FILE   "/tmp/uploadthis.txt"
#define REMOTE_URL   "ftp://example.com/" UPLOAD_FILE_AS
#define RENAME_FILE_TO   "renamed-and-fine.txt"
#define UPLOAD_FILE_AS   "while-uploading.txt"

Functions

int main (void)
static size_t read_callback (void *ptr, size_t size, size_t nmemb, void *stream)

Define Documentation

#define LOCAL_FILE   "/tmp/uploadthis.txt"

Definition at line 42 of file ftpupload.c.

#define REMOTE_URL   "ftp://example.com/" UPLOAD_FILE_AS

Definition at line 44 of file ftpupload.c.

#define RENAME_FILE_TO   "renamed-and-fine.txt"

Definition at line 45 of file ftpupload.c.

#define UPLOAD_FILE_AS   "while-uploading.txt"

Definition at line 43 of file ftpupload.c.


Function Documentation

int main ( void  )

Definition at line 66 of file ftpupload.c.

static size_t read_callback ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  stream 
) [static]

Definition at line 51 of file ftpupload.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:08