]> jfr.im git - solanum.git/blobdiff - include/irc_string.h
strlcat -> rb_strlcat
[solanum.git] / include / irc_string.h
index 2aa7f41d076e32b7da8e4c4421ea796ac0804fa8..51ea0fd598cdd275eb6b306dfd1357bf92d61045 100644 (file)
@@ -91,20 +91,6 @@ 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
  * -Dianora
@@ -130,9 +116,6 @@ const char *myctime(time_t);
 
 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
  */