#include <unistd.h>
#include <sys/stat.h>

#include "../util.h"

off_t filesize(char *path)
{
	struct stat s;
	if (stat(path, &s))
		return 0;
	return s.st_size;
}