Debian Codegraph @

common/compat.h

raw symbols SCIP
1 /* $Id: compat.h,v 1.6 2015/07/24 08:26:05 ragge Exp $ */
2
3 /*
4 * Just compatibility function prototypes.
5 * Public domain.
6 */
7
8 #ifndef COMPAT_H
9 #define COMPAT_H
10
11 #ifndef HAVE_STRLCPY
12 #include <stddef.h> /* size_t */
13 size_t strlcpy(char *dst, const char *src, size_t siz);
14 #endif
15
16 #ifndef HAVE_STRLCAT
17 #include <stddef.h> /* size_t */
18 size_t strlcat(char *dst, const char *src, size_t siz);
19 #endif
20
21 #ifndef HAVE_GETOPT
22 extern char *optarg;
23 extern int optind;
24 int getopt(int, char * const [], const char *);
25 #endif
26
27 #ifndef HAVE_MKSTEMP
28 int mkstemp(char *);
29 #endif
30
31 #ifndef HAVE_FFS
32 int ffs(int);
33 #endif
34
35 #ifndef HAVE_SNPRINTF
36 #include <stddef.h> /* size_t */
37 int snprintf(char *str, size_t count, const char *fmt, ...);
38 #endif
39
40 #ifndef HAVE_VSNPRINTF
41 #include <stddef.h> /* size_t */
42 #include <stdarg.h> /* va_list */
43 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
44 #endif
45
46 #endif