Skip to main content
Ctrl+K
PETSc v3.23.6-606-g7787bf7449e94 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscStrcmp

PetscStrcmp#

Compares two strings

Synopsis#

static inline PetscErrorCode PetscStrcmp(const char a[], const char b[], PetscBool *flg)

Not Collective, No Fortran Support

Input Parameters#

  • a - pointer to string first string

  • b - pointer to second string

Output Parameter#

  • flg - PETSC_TRUE if the two strings are equal

See Also#

PetscStrcmpAny(), PetscStrgrt(), PetscStrncmp(), PetscStrcasecmp()

Level#

intermediate

Location#

include/petscstring.h

Examples#

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


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-09-19T03:48:02-0500 (v3.23.6-606-g7787bf7449e94).