:orphan:
# PetscFixFilename
Fixes a file name so that it is correct for both Unix and Microsoft Windows by using the correct / or \ to separate directories. 
## Synopsis
```
PetscErrorCode PetscFixFilename(const char filein[], char fileout[])
```
Not Collective


## Input Parameter

- ***filein -*** name of file to be fixed



## Output Parameter

- ***fileout -*** the fixed name. Should long enough to hold the filename.





## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/fileio/ghome.c.html#PetscFixFilename">src/sys/fileio/ghome.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/ghome.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
