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#

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

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages