* add p cc
[mascara-docs.git] / compilers / pcc / pcc-1.0.0 / mip / compat.h
blob31b63e750a5dec8031ca4f3e825767ac1ff2c2b1
1 /*
2 * Just compatibility function prototypes.
3 * Public domain.
4 */
6 #ifndef COMPAT_H
7 #define COMPAT_H
9 #include <string.h>
11 #ifndef HAVE_STRLCPY
12 size_t strlcpy(char *dst, const char *src, size_t siz);
13 #endif
15 #ifndef HAVE_STRLCAT
16 size_t strlcat(char *dst, const char *src, size_t siz);
17 #endif
19 #ifndef HAVE_GETOPT
20 extern char *optarg;
21 extern int optind;
22 int getopt(int, char **, char *);
23 #endif
25 #ifndef HAVE_BASENAME
26 char *basename(char *);
27 #endif
29 #ifndef HAVE_MKSTEMP
30 int mkstemp(char *);
31 #endif
33 #ifndef HAVE_FFS
34 int ffs(int);
35 #endif
37 #ifndef HAVE_SNPRINTF
38 int snprintf(char *str, size_t count, const char *fmt, ...);
39 #endif
41 #ifndef HAVE_VSNPRINTF
42 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
43 #endif
45 #endif