:orphan:
# PetscOptionsLeftGet
Returns all options that were set and never used. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscOptionsLeftGet(PetscOptions options, PetscInt *N, char **names[], char **values[])
```
Not Collective


## Input Parameter

- ***options -*** options database, use `NULL` for default global database



## Output Parameters

- ***N -*** count of options not used
- ***names -*** names of options not used
- ***values -*** values of options not used





## Notes
Users should call `PetscOptionsLeftRestore()` to free the memory allocated in this routine

The value returned may be different on each process and depends on which options have been processed
on the given process


## See Also
 `PetscOptionsAllUsed()`, `PetscOptionsLeft()`

## Level
advanced

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


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