X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/c9bf23febfe7c108b9da7dd1937b586eace40812..59b38cc02dd57c5a072cf206794548fbb37e0571:/src/common.h diff --git a/src/common.h b/src/common.h index 5e748fa..ffee4f4 100644 --- a/src/common.h +++ b/src/common.h @@ -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"))