Select Git revision
-
Julian Rother authoredJulian Rother authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
filesize.c 164 B
#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;
}