File: util.h

package info (click to toggle)
cvsps 2.1-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 352 kB
  • ctags: 402
  • sloc: ansic: 4,687; sh: 189; makefile: 77
file content (27 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (5)
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
27
/*
 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
 * See COPYING file for license information 
 */

#ifndef UTIL_H
#define UTIL_H

#define CVSPS_PREFIX ".cvsps"

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

char *xstrdup(char const *);
void strzncpy(char * dst, const char * src, int n);
char *readfile(char const *filename, char *buf, size_t size);
char *strrep(char *s, char find, char replace);
char *get_cvsps_dir();
char *get_string(char const *str);
void convert_date(time_t *, const char *);
void timing_start();
void timing_stop(const char *);
int my_system(const char *);
int escape_filename(char *, int, const char *);

#endif /* UTIL_H */