fix-macintosh.p
[cvsps/4msysgit.git] / util.h
blob86777bec790300f63b49bc6bf319a2cce8b850b9
1 /*
2 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
3 * See COPYING file for license information
4 */
6 #ifndef UTIL_H
7 #define UTIL_H
9 #ifdef __MINGW32__
10 #define CVSPS_PREFIX "cvsps"
11 #else
12 #define CVSPS_PREFIX ".cvsps"
13 #endif
15 #ifndef PATH_MAX
16 #define PATH_MAX 4096
17 #endif
19 char *xstrdup(char const *);
20 void strzncpy(char * dst, const char * src, int n);
21 char *readfile(char const *filename, char *buf, size_t size);
22 char *strrep(char *s, char find, char replace);
23 char *get_cvsps_dir();
24 char *get_string(char const *str);
25 void convert_date(time_t *, const char *);
26 void timing_start();
27 void timing_stop(const char *);
28 int my_system(const char *);
29 int escape_filename(char *, int, const char *);
31 #endif /* UTIL_H */