:orphan:
# PetscObjectListDuplicate
Creates a new list from a given object list. 
## Synopsis
```
PetscErrorCode PetscObjectListDuplicate(PetscObjectList fl, PetscObjectList *nl)
```

## Input Parameter

- ***fl   -*** pointer to list



## Output Parameter

- ***nl -*** the new list (should point to `NULL` to start, otherwise appends)





## See Also
 `PetscObjectListDestroy()`, `PetscObjectListAdd()`, `PetscObjectListReverseFind()`, `PetscObjectListFind()`, `PetscObjectListDuplicate()`,
`PetscObjectList`

## Level
developer

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


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