Astrophysics/functions.c
2023-08-04 10:39:16 +02:00

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;
}