]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/common.h
SGLINE and SSHUN support for some stuff coming soon in Nefarious
[irc/evilnet/x3.git] / src / common.h
index 5e748fa8c32697f20a975eb4aef13da2e5abf147..ffee4f4f27235c6988ad90819ef256ffdcea74b4 100644 (file)
@@ -5,7 +5,7 @@
  *
  * x3 is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -269,8 +269,10 @@ void string_buffer_append_substring(struct string_buffer *buf, const char *tail,
 void string_buffer_append_vprintf(struct string_buffer *buf, const char *fmt, va_list args);
 void string_buffer_append_printf(struct string_buffer *buf, const char *fmt, ...);
 void string_buffer_replace(struct string_buffer *buf, unsigned int from, unsigned int len, const char *repl);
+void
+irc_strtolower(char *str);
 
-int str_is_number(char *str);
+int str_is_number(const char *str);
 #define enabled_string(string)  (!irccasecmp((string), "on") || !strcmp((string), "1") || !irccasecmp((string), "enabled"))
 #define disabled_string(string) (!irccasecmp((string), "off") || !strcmp((string), "0") || !irccasecmp((string), "disabled"))
 #define true_string(string)     (!irccasecmp((string), "true") || !strcmp((string), "1") || !irccasecmp((string), "yes"))