PetscFixFilename

Fixes a file name so that it is correct for both Unix and Windows by using the correct / or \ to seperate directories.

Synopsis

int PetscFixFilename(char *file)
Not Collective

Input Parameter

name -name of file (must be in writable memory)

Notes

Call PetscFixFilename() just before calling fopen().

Location: src/sys/src/fileioghome.c
System Index
Table of Contents