PetscStrrstr#

Locates last occurrence of string in another string

Synopsis#

#include "petscsys.h"   
PetscErrorCode PetscStrrstr(const char a[], const char b[], char *tmp[])

Not Collective

Input Parameters#

  • a - pointer to string

  • b - string to find

Output Parameter#

  • tmp - location of occurrence

Fortran Note#

Not for use in Fortran

See Also#

PetscStrbeginswithwhich(), PetscStrendswith(), 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