Add test about issue with no commit on a branch
[cvsps-hv.git] / util.h
blob4d85cc8df287cea78245927d8f17b6d402c68bb4
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 #define CVSPS_PREFIX ".cvsps"
11 #ifndef PATH_MAX
12 #define PATH_MAX 4096
13 #endif
15 char *xstrdup(char const *);
16 void strzncpy(char * dst, const char * src, int n);
17 char *readfile(char const *filename, char *buf, size_t size);
18 char *strrep(char *s, char find, char replace);
19 char *get_cvsps_dir();
20 char *get_string(char const *str);
21 void convert_date(time_t *, const char *);
22 void timing_start();
23 void timing_stop(const char *);
24 int my_system(const char *);
25 int escape_filename(char *, int, const char *);
27 #endif /* UTIL_H */