13 lines
174 B
C
13 lines
174 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "functions.h"
|
|
|
|
int fileExist(char *path){
|
|
FILE *f = fopen(path, "r");
|
|
|
|
if (f == NULL)
|
|
return -1;
|
|
fclose(f);
|
|
return 0;
|
|
}
|