:orphan: # PetscGetRelativePath Given a filename, returns the relative path (removes all directory specifiers). ## Synopsis ``` PetscErrorCode PetscGetRelativePath(const char fullpath[], char path[], size_t flen) ``` Not Collective; No Fortran Support ## Input Parameters - ***fullpath -*** full pathname - ***flen -*** size of `path` ## Output Parameter - ***path -*** buffer that holds relative pathname ## See Also `PetscGetFullPath()` ## Level developer ## Location src/sys/fileio/rpath.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/fileio/rpath.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)