Subversion Repositories SvarDOS

Rev

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