Quake/host_cmd.c
// Return the number of games in memory
Return the number of games in memory
Return the number of games in memory
int NumGames(searchpath_t *search)
{
	int found = 0;
	while (search)
	{
		if (*search->filename)
			found++;
		search = search->next;
	}
	return found;
}
int NumGames ( searchpath_t * search ) { int found = 0 ; while ( search ) { if ( * search -> filename ) found ++ ; search = search -> next ; } return found ; }
Return the number of games in memory
Return the number of games in memory