:orphan: # PetscStrendswith Determines if a string ends with a certain string ## Synopsis ``` static inline PetscErrorCode PetscStrendswith(const char a[], const char b[], PetscBool *flg) ``` Not Collective, No Fortran Support ## Input Parameters - ***a -*** string to search - ***b -*** string to end with ## Output Parameter - ***flg -*** `PETSC_TRUE` if `a` ends with `b`, `PETSC_FALSE` otherwise ## Notes Both `a` and `b` may be `NULL` (in which case `flg` is set to `PETSC_FALSE`) bot not either. ## See Also `PetscStrendswithwhich()`, `PetscStrbeginswith()`, `PetscStrtoupper`, `PetscStrtolower()`, `PetscStrrchr()`, `PetscStrchr()`, `PetscStrncmp()`, `PetscStrlen()`, `PetscStrcmp()` ## Level intermediate ## Location include/petscstring.h --- [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)