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 "petsc.h"   
int PetscStrrchr(const char a[],char b,char **tmp)
Not Collective

Input Parameters

a - pointer to string first string
b - character

Output Parameter

tmp -location of occurance, a if not found

Level:intermediate
Location:
src/sys/src/utils/str.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex10.c.html