Subversion Repositories SvarDOS

Rev

Rev 995 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
225 mateuszvis 2
 * This file is part of pkginst
1678 mateusz.vi 3
 * Copyright (C) 2012-2024 Mateusz Viste
219 mateuszvis 4
 *
5
 * It contains a few helper function...
6
 */
7
 
8
#ifndef helpers_sentinel
9
#define helpers_sentinel
1678 mateusz.vi 10
 
219 mateuszvis 11
#include "loadconf.h"   /* required for the customdirs struct */
1678 mateusz.vi 12
 
219 mateuszvis 13
void slash2backslash(char *str);
1678 mateusz.vi 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
 
219 mateuszvis 19
char *fdnpkg_strcasestr(const char *s, const char *find);
1678 mateusz.vi 20
 
21
/* recursively mkdir() directories of a path.
22
 * ignores the trailing filename if there is one */
219 mateuszvis 23
void mkpath(char *dirs);
1678 mateusz.vi 24
 
231 mateuszvis 25
char *computelocalpath(char *longfilename, char *respath, const char *dosdir, const struct customdirs *dirlist);
219 mateuszvis 26
void removeDoubleBackslashes(char *str);
27
char *getfext(char *fname);
248 mateuszvis 28
int freadtokval(FILE *fd, char *line, size_t maxlen, char **val, char delim);
1678 mateusz.vi 29
 
219 mateuszvis 30
#endif