Subversion Repositories SvarDOS

Rev

Rev 995 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 995 Rev 1678
Line 1... Line 1...
1
/*
1
/*
2
 * This file is part of pkginst
2
 * This file is part of pkginst
3
 * Copyright (C) 2012-2022 Mateusz Viste
3
 * Copyright (C) 2012-2024 Mateusz Viste
4
 *
4
 *
5
 * It contains a few helper function...
5
 * It contains a few helper function...
6
 */
6
 */
7
 
7
 
8
#ifndef helpers_sentinel
8
#ifndef helpers_sentinel
9
#define helpers_sentinel
9
#define helpers_sentinel
-
 
10
 
10
#include "loadconf.h"   /* required for the customdirs struct */
11
#include "loadconf.h"   /* required for the customdirs struct */
-
 
12
 
11
void slash2backslash(char *str);
13
void slash2backslash(char *str);
-
 
14
 
-
 
15
/* trim CRC from a filename and returns a pointer to the CRC part.
-
 
16
 * this is used to parse filename lines from LSM files */
-
 
17
char *trimfnamecrc(char *fname);
-
 
18
 
12
char *fdnpkg_strcasestr(const char *s, const char *find);
19
char *fdnpkg_strcasestr(const char *s, const char *find);
-
 
20
 
-
 
21
/* recursively mkdir() directories of a path.
-
 
22
 * ignores the trailing filename if there is one */
13
void mkpath(char *dirs);
23
void mkpath(char *dirs);
-
 
24
 
14
char *computelocalpath(char *longfilename, char *respath, const char *dosdir, const struct customdirs *dirlist);
25
char *computelocalpath(char *longfilename, char *respath, const char *dosdir, const struct customdirs *dirlist);
15
void removeDoubleBackslashes(char *str);
26
void removeDoubleBackslashes(char *str);
16
char *getfext(char *fname);
27
char *getfext(char *fname);
17
int freadtokval(FILE *fd, char *line, size_t maxlen, char **val, char delim);
28
int freadtokval(FILE *fd, char *line, size_t maxlen, char **val, char delim);
-
 
29
 
18
#endif
30
#endif