:orphan: # PetscStrrchr Locates one location past the last occurrence of a character in a string, if the character is not found then returns entire string ## Synopsis ``` static inline PetscErrorCode PetscStrrchr(const char a[], char b, char *c[]) ``` Not Collective, No Fortran Support ## Input Parameters - ***a -*** pointer to string - ***b -*** character ## Output Parameter - ***c -*** one past location of `b` in `a`, or `a` if `b` was not found ## See Also `PetscStrchr()`, `PetscTokenCreate()`, `PetscStrendswith()`, `PetscStrbeginsswith()` ## Level intermediate ## Location include/petscstring.h ## Examples src/ksp/ksp/tutorials/ex43.c
src/ksp/ksp/tutorials/ex72.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscstring.h) [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)