Source

qutils / bspinfo / bspinfo.c

Full commit
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <stdarg.h>
#include "../common/cmdlib.h"
#include <math.h>
#include "../common/mathlib.h"
#include "../common/bspfile.h"

void
main(int argc, char **argv)
{
	int i;
	char source[1024];

	if(argc == 1)
		Error("usage: bspinfo bspfile[s]");

	for(i = 1; i < argc; i++) {
		strcpy(source, argv[i]);
		DefaultExtension(source, ".bsp");
		printf("%s\n", source);

		LoadBSPFile(source);
		PrintBSPFileSizes();
	}
}