PetscStrendswith#

Determines if a string ends with a certain string

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscStrendswith(const char a[], const char b[], PetscBool *flg)

Not Collective

Input Parameters#

  • a - pointer to string

  • b - string to endwith

Output Parameter#

Fortran Note#

Not for use in Fortran

See Also#

PetscStrendswithwhich(), PetscStrbeginswith(), PetscStrtoupper, PetscStrtolower(), PetscStrrchr(), PetscStrchr(), PetscStrncmp(), PetscStrlen(), PetscStrncmp(), PetscStrcmp()

Level#

intermediate

Location#

src/sys/utils/str.c


Edit on GitLab

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