# PetscEnumFind
searches enum list of strings for given string, using case insensitive matching 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscEnumFind(const char *const *enumlist, const char *str, PetscEnum *value, PetscBool *found)
```
Not Collective


## Input Parameters

- ***enumlist -*** list of strings to search, followed by enum name, then enum prefix, then NUL
- ***str -*** string to look for



## Output Parameters

- ***value -*** index of matching string (if found)
- ***found -*** boolean indicating whether string was found (can be NULL)



## Fortran Note
Not for use in Fortran




## See Also
 `PetscEListFind()`

## Level
advanced

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


---
[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)  
