PetscStrcmp

Compares two strings, up to a certain length

Synopsis

#include "petsc.h"   
int PetscStrncmp(const char a[],const char b[],int n,PetscTruth *t)
Not Collective

Input Parameters

a - pointer to string first string
b - pointer to second string
n - length to compare up to

Output Parameter

t -if the two strings are equal

See Also

PetscStrgrt(), PetscStrncmp(), PetscStrcasecmp()

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/sys/examples/tutorials/ex4.c.html