# PetscStrArrayallocpy
Allocates space to hold a copy of an array of strings then copies the strings 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscStrArrayallocpy(const char *const *list, char ***t)
```
Not Collective


## Input Parameters

- ***s -*** pointer to array of strings (final string is a null)



## Output Parameter

- ***t -*** the copied array string





## Note
If t has previously been allocated then that memory is lost, you may need to PetscStrArrayDestroy()
the array before calling this routine.


## Fortran Note
Not for use in Fortran


## See Also
 `PetscStrallocpy()`, `PetscStrArrayDestroy()`, `PetscStrNArrayallocpy()`

## Level
intermediate

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/extchem.c.html">src/ts/tutorials/extchem.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)  
