#include <time.h>
#include "ftpparse.h"
Go to the source code of this file.
Functions | |
long | totai (long year, long month, long mday) |
void | initbase (void) |
void | initnow (void) |
long | guesstai (long month, long mday) |
int | check (char *buf, char *monthname) |
int | getmonth (char *buf, int len) |
long | getlong (char *buf, int len) |
int | ftpparse (struct ftpparse *fp, char *buf, int len) |
Variables | |
int | flagneedbase = 1 |
time_t | base |
long | now |
int | flagneedcurrentyear = 1 |
long | currentyear |
char * | months [12] |
|
Definition at line 116 of file ftpparse.cc. Referenced by getmonth(). |
|
Definition at line 145 of file ftpparse.cc. References base, ftpparse::flagtrycwd, ftpparse::flagtryretr, getlong(), getmonth(), guesstai(), ftpparse::id, ftpparse::idlen, ftpparse::idtype, initbase(), ftpparse::mtime, ftpparse::mtimetype, ftpparse::name, ftpparse::namelen, ftpparse::size, ftpparse::sizetype, and totai(). |
|
Definition at line 137 of file ftpparse.cc. Referenced by ftpparse(). |
|
Definition at line 128 of file ftpparse.cc. References check(), and months. Referenced by ftpparse(). |
|
Definition at line 101 of file ftpparse.cc. References currentyear, initnow(), now, and totai(). Referenced by ftpparse(). |
|
Definition at line 53 of file ftpparse.cc. References base, flagneedbase, and totai(). Referenced by ftpparse(), and initnow(). |
|
Definition at line 66 of file ftpparse.cc. References currentyear, flagneedcurrentyear, initbase(), and now. Referenced by guesstai(). |
|
Definition at line 27 of file ftpparse.cc. Referenced by ftpparse(), guesstai(), and initbase(). |
|
Definition at line 48 of file ftpparse.cc. Referenced by ftpparse(), and initbase(). |
|
Definition at line 51 of file ftpparse.cc. Referenced by guesstai(), and initnow(). |
|
Definition at line 47 of file ftpparse.cc. Referenced by initbase(). |
|
Definition at line 50 of file ftpparse.cc. Referenced by initnow(). |
|
Initial value: { "jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec" } Definition at line 124 of file ftpparse.cc. Referenced by getmonth(). |
|
Definition at line 49 of file ftpparse.cc. Referenced by guesstai(), and initnow(). |