Add Multicast capabilities for LAN server scanning.
This commit is contained in:
parent
32bd0ab5bd
commit
eb3b59308b
10 changed files with 351 additions and 153 deletions
|
@ -921,6 +921,18 @@ char *Q_CleanStr( char *string ) {
|
|||
return string;
|
||||
}
|
||||
|
||||
int Q_CountChar(const char *string, char tocount)
|
||||
{
|
||||
int count;
|
||||
|
||||
for(count = 0; *string; string++)
|
||||
{
|
||||
if(*string == tocount)
|
||||
count++;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
void QDECL Com_sprintf( char *dest, int size, const char *fmt, ...) {
|
||||
int len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue