/*
	sys_filesize(fname)

	Returns the size (in bytes) of the file named "fname".
	Returns (-1) on error (e.g., if the file does not exist).
*/
#include <ncbi.h>
#include <gishlib.h>

long
sys_filesize(fname)
	CharPtr fname;
{
	struct stat	sbuf;

	if (stat(fname, &sbuf) == 0)
		return (long)sbuf.st_size;
	return -1;
}
