File: helpers.h

package info (click to toggle)
sludge 2.2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,852 kB
  • sloc: cpp: 32,432; sh: 1,237; makefile: 634; xml: 284
file content (26 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 *  helpers.h
 *  Helper functions that don't depend on other source files.
 */

// Making something with a char *
char * joinStrings (const char * a, const char * b);
char * joinStrings (const char * a, const char * b, const char * c);
char * joinStrings (const char * a, const char * b, const char * c, const char * d);

char * joinQuote (char * a, char * b, char q1, char q2);

#ifdef __cplusplus
extern "C" {
#endif

extern char * sourceDirectory;

bool getSourceDirFromName (const char * filename);
bool gotoSourceDirectory ();

void fixPath (char *filename, bool makeGood);

#ifdef __cplusplus
}
#endif