]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/hgen.h
Rename trusts_cidr2str to CIDRtostr() and move it to lib/irc_ipv6.c.
[irc/quakenet/newserv.git] / helpmod2 / hgen.h
index c901593e9c4601bc94b204be0a8bb02daeaaaef3..eb1c2bf8e3b18e22b39e77cee8b9722cfea8f8d2 100644 (file)
@@ -9,7 +9,7 @@ int ci_strcmp(const char*, const char*);
 /* matches string (const char*) to the regular expression (? and *) (const char*) */
 int strregexp(const char *, const char *);
 
-/* prints the time in the common 1h 2m 3s format, hour is the maximum unit printed currently */
+/* prints the time in the common 1h 2m 3s format, has three internal buffers */
 const char *helpmod_strtime(int);
 /* reads a time string */
 int helpmod_read_strtime(const char *);
@@ -24,4 +24,11 @@ int strisupper(const char*);
 int strisalpha(const char*);
 int strnumcount(const char*);
 
+float helpmod_percentage(int, int);
+
+/* A select for strings, case insensitive
+ * String to match, strings, corresponding int values (enums) and amount of both
+ * In case of no match, -1 is returned */
+int helpmod_select(const char*, const char**, int*, int);
+
 #endif