:orphan:
# PetscCheckPointer
Returns `PETSC_TRUE` if a pointer points to accessible data 
## Synopsis
```
PetscBool PetscCheckPointer(const void *ptr, PetscDataType dtype)
```
Not Collective


## Input Parameters

- ***ptr -*** the pointer
- ***dtype -*** the type of data the pointer is suppose to point to





## Note
This is a non-standard PETSc function in that it returns the result as the return code and does not return an error code


## See Also
 `PetscCheckPointerSetIntensity()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/error/checkptr.c.html#PetscCheckPointer">src/sys/error/checkptr.c</A>


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


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