server source reorg
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4559 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -615,6 +615,18 @@ const char *iprtoa(const struct iprange &ipr)
|
||||
return s[buf];
|
||||
}
|
||||
|
||||
int cmpiprange(const struct iprange *a, const struct iprange *b)
|
||||
{
|
||||
if(a->lr < b->lr) return -1;
|
||||
if(a->lr > b->lr) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cmpipmatch(const struct iprange *a, const struct iprange *b)
|
||||
{
|
||||
return - (a->lr < b->lr) + (a->lr > b->ur);
|
||||
}
|
||||
|
||||
char *s_strcatf(char *d, const char *s, ...)
|
||||
{
|
||||
static s_sprintfdv(temp, s);
|
||||
|
||||
Reference in New Issue
Block a user