:orphan:
# PetscObjectsGetObject
Get a pointer to a named object 
## Synopsis
```
#include "petscsys.h"    
PetscErrorCode PetscObjectsGetObject(const char *name, PetscObject *obj, char **classname)
```
Not Collective


## Input Parameter

- ***name -*** the name of an object



## Output Parameters

- ***obj -*** the object or `NULL` if there is no object
- ***classname -*** the name of the class





## See Also
 `PetscObject`

## Level
advanced

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


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