PetscStrchr#

Locates first occurrence of a character in a string

Synopsis#

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

Not Collective

Input Parameters#

  • a - pointer to string

  • b - character

Output Parameter#

  • c - location of occurrence, NULL if not found

Fortran Note#

Not for use in Fortran

See Also#

PetscStrrchr(), PetscTokenCreate(), PetscStrendswith(), PetscStrbeginsswith()

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