# PetscStrcasecmp
Returns true if the two strings are the same except possibly for case. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscStrcasecmp(const char a[], const char b[], PetscBool *t)
```
Not Collective


## Input Parameters

- ***a -*** pointer to first string
- ***b -*** pointer to second string



## Output Parameter

- ***flg -*** if the two strings are the same



## Note
Null arguments are ok


## Fortran Note
Not for use in Fortran




## See Also
 `PetscStrcmp()`, `PetscStrncmp()`, `PetscStrgrt()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/str.c.html#PetscStrcasecmp">src/sys/utils/str.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11.c.html">src/ts/tutorials/ex11.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex11_sa.c.html">src/ts/tutorials/ex11_sa.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex18.c.html">src/ts/tutorials/ex18.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/utils/str.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
