VOID\r
);\r
\r
+char* \r
+NormalizePath (\r
+ char* OldPathName\r
+ );\r
+\r
int\r
main (\r
int argc,\r
// Open the file, determine the size, then read it in and write\r
// it back out.\r
//\r
- if ((InFptr = fopen (FileNames->Str, "rb")) == NULL) {\r
- Error (NULL, 0, 0, FileNames->Str, "failed to open input file for reading");\r
+ if ((InFptr = fopen (NormalizePath(FileNames->Str), "rb")) == NULL) {\r
+ Error (NULL, 0, 0, NormalizePath(FileNames->Str), "failed to open input file for reading");\r
goto Done;\r
}\r
fseek (InFptr, 0, SEEK_END);\r
fprintf (stdout, "%s\n", Msg[i]);\r
}\r
}\r
+\r
+char* \r
+NormalizePath (\r
+ char* OldPathName\r
+ )\r
+{\r
+ char* Visitor;\r
+ \r
+ if (OldPathName == NULL) {\r
+ return NULL;\r
+ }\r
+ \r
+ Visitor = OldPathName;\r
+ while (*Visitor != '\0') {\r
+ if (*Visitor == '\\') {\r
+ *Visitor = '/';\r
+ }\r
+ }\r
+ \r
+ return Visitor;\r
+}
\ No newline at end of file