PetscStrcmp#

Compares two strings,

Synopsis#

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

Not Collective

Input Parameters#

  • a - pointer to string first string

  • b - pointer to second string

Output Parameter#

Fortran Note#

Not for use in Fortran

See Also#

PetscStrgrt(), PetscStrncmp(), PetscStrcasecmp()

Level#

intermediate

Location#

src/sys/utils/str.c

Examples#

src/sys/tutorials/ex20.c.html
src/vec/is/sf/tutorials/ex1.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex72.c.html
src/ksp/ksp/tutorials/ex76.c.html
src/ksp/ksp/tutorials/ex77.c.html
src/ksp/ksp/tutorials/ex78.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex11_sa.c.html


Edit on GitLab

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