CVS patchset: 26
CVS date: 1995/12/13 20:11:31
+#include <errno.h>
#include <stdlib.h>
+#include <sys/stat.h>
#include "misc.h"
free(list[0]);
free(list);
}
+
+int exists(char * filespec) {
+ struct stat buf;
+
+ if (stat(filespec, &buf)) {
+ switch(errno) {
+ case ENOENT:
+ case EINVAL:
+ return 0;
+ }
+ }
+
+ return 1;
+}
char ** splitString(char * str, int length, char sep);
void freeSplitString(char ** list);
+int exists(char * filespec);
+
#endif