Subversion Repositories SvarDOS

Rev

Rev 1892 | Rev 1959 | Go to most recent revision | 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
 
1893 mateusz.vi 13
/* outputs a NUL-terminated string to stdout */
14
void output(const char *s);
15
 
219 mateuszvis 16
void slash2backslash(char *str);
1678 mateusz.vi 17
 
18
/* trim CRC from a filename and returns a pointer to the CRC part.
19
 * this is used to parse filename lines from LSM files */
20
char *trimfnamecrc(char *fname);
21
 
219 mateuszvis 22
char *fdnpkg_strcasestr(const char *s, const char *find);
1678 mateusz.vi 23
 
24
/* recursively mkdir() directories of a path.
25
 * ignores the trailing filename if there is one */
219 mateuszvis 26
void mkpath(char *dirs);
1678 mateusz.vi 27
 
1892 mateusz.vi 28
char *computelocalpath(char *longfilename, char *respath, const char *dosdir, const struct customdirs *dirlist, char bootdrive);
219 mateuszvis 29
void removeDoubleBackslashes(char *str);
30
char *getfext(char *fname);
248 mateuszvis 31
int freadtokval(FILE *fd, char *line, size_t maxlen, char **val, char delim);
1678 mateusz.vi 32
 
219 mateuszvis 33
#endif