]> jfr.im git - solanum.git/blobdiff - include/irc_string.h
myctime -> rb_ctime
[solanum.git] / include / irc_string.h
index 2aa7f41d076e32b7da8e4c4421ea796ac0804fa8..9c93edac9ebfc3cd692885f6f17569ac975257dc 100644 (file)
@@ -76,34 +76,6 @@ extern int ircncmp(const char *s1, const char *s2, int n);
 #ifdef NO_DUPE_MULTI_MESSAGES
 extern char *canonize(char *);
 #endif
-/*
- * inetntoa - optimized inet_ntoa
- */
-const char *inetntoa(const char *in_addr);
-
-/* 
- * inetntop() 
- * inetpton()
- * portable interfaces for inet_ntop() and inet_pton()
- */
-const char *inetntop(int af, const void *src, char *dst, unsigned int size);
-int inetpton(int af, const char *src, void *dst);
-const char *inetntop_sock(struct sockaddr *src, char *dst, unsigned int size);
-int inetpton_sock(const char *src, struct sockaddr *dst);
-
-#ifndef HAVE_STRLCPY
-size_t strlcpy(char *dst, const char *src, size_t siz);
-#endif
-
-#ifndef HAVE_STRLCAT
-size_t strlcat(char *dst, const char *src, size_t siz);
-#endif
-
-#ifdef HAVE_STRNDUP
-#define DupNString(x, y, len) do { x = strndup(y, len); if(x == NULL) outofmemory(); } while (0)
-#else
-#define DupNString(x, y, len) do { x = malloc(len+1); if(x == NULL) outofmemory(); strlcpy(x, y, len+1); } while(0)
-#endif
 
 /*
  * clean_string - cleanup control and high ascii characters
@@ -123,16 +95,11 @@ char *strip_colour(char *string);
  */
 char *strip_tabs(char *dest, const unsigned char *src, size_t len);
 
-const char *myctime(time_t);
-
 #define EmptyString(x) ((x) == NULL || *(x) == '\0')
 #define CheckEmpty(x) EmptyString(x) ? "" : x
 
 char *strtoken(char **save, char *str, const char *fs);
 
-unsigned char *ircd_base64_encode(const unsigned char *str, int length);
-unsigned char *ircd_base64_decode(const unsigned char *str, int length, int *ret);
-
 /*
  * character macros
  */