Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: jb-mr1.1-relea…
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.241 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

int exists_main(int argc, char *argv[])
{
    struct stat s;

    if(argc < 2) return 1;

    if(stat(argv[1], &s)) {
        return 1;
    } else {
        return 0;
    }
}
Something went wrong with that request. Please try again.