16 lines
252 B
C
16 lines
252 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int resOpen(char* filename, FILE* f) {
|
|
char fLoc[128];
|
|
|
|
strcpy(fLoc, "resources/");
|
|
strcat(fLoc, filename);
|
|
f = fopen(fLoc, "rb");
|
|
|
|
if (f != NULL) return 0;
|
|
|
|
return -1;
|
|
}
|