MarFile *mar_open(const char *path) { FILE *fp; fp = fopen(path, "rb"); if (!fp) return NULL; return mar_fpopen(fp); }
MarFile *mar_wopen(const PRUnichar *path) { FILE *fp; fp = _wfopen(path, L"rb"); if (!fp) return NULL; return mar_fpopen(fp); }
MarFile *mar_wopen(const wchar_t *path) { FILE *fp; _wfopen_s(&fp, path, L"rb"); if (!fp) return NULL; return mar_fpopen(fp); }
MarFile *mar_wopen(const wchar_t *path) { FILE *fp; _wfopen_s(&fp, path, L"rb"); if (!fp) { fprintf(stderr, "ERROR: could not open file in mar_wopen()\n"); _wperror(path); return NULL; } return mar_fpopen(fp); }
MarFile *mar_open(const char *path) { FILE *fp; fp = fopen(path, "rb"); if (!fp) { fprintf(stderr, "ERROR: could not open file in mar_open()\n"); perror(path); return NULL; } return mar_fpopen(fp); }