# PetscStrToArrayDestroy
Frees array created with `PetscStrToArray()`. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscStrToArrayDestroy(int argc, char **args)
```
Not Collective


## Output Parameters

- ***argc -*** the number of arguments
- ***args -*** the array of arguments





## Note
This may be called before `PetscInitialize()` or after `PetscFinalize()`


## Fortran Note
Not for use in Fortran


## See Also
 `PetscStrToArray()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/utils/str.c.html#PetscStrToArrayDestroy">src/sys/utils/str.c</A>

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


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


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