petsc-3.13.6 2020-09-29
Report Typos and Errors

PetscStrrchr

Locates one location past the last occurance of a character in a string, if the character is not found then returns entire string

Synopsis

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

Input Parameters

a - pointer to string
b - character

Output Parameter

tmp -location of occurance, a if not found

Notes

Not for use in Fortran

Level

intermediate

Location

src/sys/utils/str.c

Examples

src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex72.c.html

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