13#define STREQ(a,b) (strcmp(a,b) == 0)
14#define STRNEQ(a,b,s) (strncmp(a,b,(size_t)(s)) == 0)
17# ifdef HAVE_STRCASECMP
18# define ISTRCMP strcasecmp
19# define ISTRNCMP strncasecmp
21# define ISTRCMP strcmp
22# define ISTRNCMP strncmp
26#define ISTREQ(a,b) (ISTRCMP(a,b) == 0)
27#define ISTRNEQ(a,b,s) (ISTRNCMP(a,b,(size_t)(s)) == 0)
28#define YESNO(i) ((i == 0) ? "no" : "yes")
29#define ONOFF(i) ((i == 0) ? "off" : "on")
30#define TRUEFALSE(i) ((i == 0) ? "false" : "true")
34# define strcoll strcmp
37# define strncoll strncmp
45#define kOurDirectoryName ".ncftp"
47#define kPasswordMagic "*encoded*"
48#define kPasswordMagicLen 9
50#if defined(WIN32) || defined(_WINDOWS)
51# define kNcFTPBookmarksMailslot "\\\\.\\mailslot\\ncftpbm.slt"
52# define kNcFTPBookmarksMailslotMsgSize 128
56void ToBase64(
void *,
const void *,
size_t,
int);
57void FromBase64(
void *,
const void *,
size_t,
int);
64void PathCat(
char *
const dst,
const size_t dsize,
const char *
const cwd,
const char *
const src);
65char *
FileToURL(
char *
url,
size_t urlsize,
const char *
const fn,
const char *
const rcwd,
const char *
const startdir,
const char *
const user,
const char *
const pass,
const char *
const hname,
const unsigned int port);
66void AbbrevStr(
char *,
const char *,
size_t,
int);
67char *
Path(
char *
const dst,
const size_t siz,
const char *
const parent,
const char *
const fname);
73void AbsoluteToRelative(
char *
const,
const size_t,
const char *
const,
const char *
const,
const size_t);
74int GetHostByName(
char *
const volatile,
size_t,
const char *
const,
int);
78#if defined(WIN32) || defined(_WINDOWS)
79void SysPerror(
const char *
const errMsg);
82#if defined(HAVE_STRCOLL) && !defined(HAVE_STRNCOLL)
83int strncoll(
const char *
a,
const char *
b,
size_t n);
PRTL_UNICODE_STRING_BUFFER Path
void user(int argc, const char *argv[])
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
int GetHostByName(char *const volatile, size_t, const char *const, int)
int MayUseFirewall(const char *const, int, const char *const)
time_t UnDate(char *dstr)
int(* qsort_proc_t)(const void *, const void *)
void InitOurDirectory(void)
char * GetCWD(char *, size_t)
void ToBase64(void *, const void *, size_t, int)
volatile sigproc_t vsigproc_t
char * FileToURL(char *url, size_t urlsize, const char *const fn, const char *const rcwd, const char *const startdir, const char *const user, const char *const pass, const char *const hname, const unsigned int port)
void MyInetAddr(char *, size_t, char **, int)
void * Realloc(void *, size_t)
char * OurInstallationPath(char *const dst, const size_t siz, const char *const fname)
int(* bsearch_proc_t)(const void *, const void *)
void FromBase64(void *, const void *, size_t, int)
int StrToBool(const char *const)
char * OurDirectoryPath(char *const dst, const size_t siz, const char *const fname)
struct hostent * GetHostEntry(const char *, struct in_addr *)
int DecodeDirectoryURL(const FTPCIPtr, char *, LineListPtr, char *, size_t)
void AbbrevStr(char *, const char *, size_t, int)
void PathCat(char *const dst, const size_t dsize, const char *const cwd, const char *const src)
void AbsoluteToRelative(char *const, const size_t, const char *const, const char *const, const size_t)
void CompressPath(char *const dst, const char *const src, const size_t dsize)
static GLenum _GLUfuncptr fn