219 |
mateuszvis |
1 |
/*
|
|
|
2 |
* This file is part of fdnpkg
|
|
|
3 |
* Copyright (C) 2012-2017 Mateusz Viste
|
|
|
4 |
*
|
|
|
5 |
* It contains a few helper function...
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
#ifndef helpers_sentinel
|
|
|
9 |
#define helpers_sentinel
|
|
|
10 |
#include "loadconf.h" /* required for the customdirs struct */
|
|
|
11 |
int isversionnewer(char *v1, char *v2);
|
|
|
12 |
void slash2backslash(char *str);
|
|
|
13 |
void backslash2slash(char *str);
|
|
|
14 |
void strtolower(char *mystring);
|
|
|
15 |
char *fdnpkg_strcasestr(const char *s, const char *find);
|
|
|
16 |
void mkpath(char *dirs);
|
|
|
17 |
void mapdrives(char *s, char *mapdrv);
|
|
|
18 |
void unmapdrives(char *s, char *mapdrv);
|
|
|
19 |
char *computelocalpath(char *longfilename, char *respath, char *dosdir, struct customdirs *dirlist);
|
|
|
20 |
void removeDoubleBackslashes(char *str);
|
|
|
21 |
int detect_localpath(char *url);
|
|
|
22 |
char *getfext(char *fname);
|
|
|
23 |
#endif
|