:orphan:
# PetscContainerGetPointer
Gets the pointer value contained in the container that was provided with `PetscContainerSetPointer()` 
## Synopsis
```
#include "petscsys.h"    
PetscErrorCode PetscContainerGetPointer(PetscContainer obj, void **ptr)
```
Not Collective


## Input Parameter

- ***obj -*** the object created with `PetscContainerCreate()`



## Output Parameter

- ***ptr -*** the pointer value





## See Also
 `PetscContainerCreate()`, `PetscContainerDestroy()`, `PetscObject`,
`PetscContainerSetPointer()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/inherit.c.html#PetscContainerGetPointer">src/sys/objects/inherit.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex7.c.html">src/snes/tutorials/ex7.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/inherit.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)  
