# PetscOptionsHelpPrintedCheck
Checks if a particular pre, name pair has previous been entered (meaning the help message was printed) 
## Synopsis
```
#include "petscviewer.h" 
PetscErrorCode PetscOptionsHelpPrintedCheck(PetscOptionsHelpPrinted hp, const char *pre, const char *name, PetscBool *found)
```
Not collective


## Input Parameters

- ***hp -*** the object used to manage tracking what help messages have been printed
- ***pre -*** the prefix part of the string, many be NULL
- ***name -*** the string to look for (cannot be NULL)



## Output Parameter

- ***found -*** PETSC_TRUE if the string was already set





## See Also
 `PetscOptionsHelpPrintedCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/interface/viewreg.c.html#PetscOptionsHelpPrintedCheck">src/sys/classes/viewer/interface/viewreg.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/interface/viewreg.c)


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