petsc-3.4.2 2013-07-02

# 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

flg -PETSC_TRUE if the two strings are equal

Notes: Not for use in Fortran

### See Also

PetscStrgrt(), PetscStrncmp(), PetscStrcasecmp()

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

### Examples

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