File: path.h

package info (click to toggle)
crossfire 1.11.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 24,456 kB
  • ctags: 7,800
  • sloc: ansic: 80,483; sh: 11,825; perl: 2,327; lex: 1,946; makefile: 1,149
file content (24 lines) | stat: -rw-r--r-- 651 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* $Id: path.h 5117 2006-11-15 02:29:53Z qal21 $ */

#ifndef PATH_H
#define PATH_H

/**
 * Combine two paths and return the combined path. The result value is a static
 * buffer; it is valid until the next call to this function.
 */
char *path_combine(const char *src, const char *dst);

/**
 * Normalize a path; the passed in path is modified in-place.
 */
void path_normalize(char *path);

/**
 * Combine two paths and normalize the result. The result is a static buffer;
 * it is valid until the next call to either this function or to
 * combine_path().
 */
char *path_combine_and_normalize(const char *src, const char *dst);

#endif /* PATH_H */