00001 /* 00002 Part of the ht://Dig package <http://www.htdig.org/> 00003 Copyright (c) 1999, 2000, 2001 The ht://Dig Group 00004 For copyright details, see the file COPYING in your distribution 00005 or the GNU General Public License version 2 or later 00006 <http://www.gnu.org/copyleft/gpl.html> 00007 */ 00008 #ifndef _clib_h_ 00009 #define _clib_h_ 00010 00011 #include <sys/types.h> 00012 00013 #ifdef __cplusplus 00014 extern "C" { 00015 #endif 00016 00017 #ifndef HAVE_GETCWD 00018 char *getcwd(char *, size_t); 00019 #endif 00020 00021 #ifndef HAVE_MEMCMP 00022 int memcmp(const void *, const void *, size_t); 00023 #endif 00024 00025 #ifndef HAVE_MEMCPY 00026 void *memcpy(void *, const void *, size_t); 00027 #endif 00028 00029 #ifndef HAVE_MEMMOVE 00030 void *memmove(void *, const void *, size_t); 00031 #endif 00032 00033 #ifndef HAVE_RAISE 00034 int raise (int); 00035 #endif 00036 00037 #ifndef HAVE_SNPRINTF 00038 int snprintf(char *, size_t, const char *, ...); 00039 #endif 00040 00041 #ifndef HAVE_STRERROR 00042 char *strerror(int); 00043 #endif 00044 00045 #ifndef HAVE_VSNPRINTF 00046 int vsnprintf(char *, size_t, const char *, ...); 00047 #endif 00048 00049 #ifndef HAVE_STRNCOLL 00050 int strncoll(const char* a, const char* b, int len); 00051 #endif 00052 00053 #ifndef HAVE_STRCASESTR 00054 const char *strcasestr(const char *s, const char *pattern); 00055 #endif 00056 00057 #ifndef HAVE_STRCASECMP 00058 int strcasecmp(const char *str1, const char *str2); 00059 #endif 00060 00061 #ifndef HAVE_STRNCASECMP 00062 int strncasecmp(const char *str1, const char *str2); 00063 #endif 00064 00065 #ifdef __cplusplus 00066 } 00067 #endif 00068 00069 #endif /* _clib_h_ */