#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>
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 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.
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.