# PetscFormatConvertGetSize
Gets the length of a string needed to hold format converted with `PetscFormatConvert()` 
## Synopsis
```
PetscErrorCode PetscFormatConvertGetSize(const char *format, size_t *size)
```
Deprecated


## Input Parameter

- ***format -*** the PETSc format string



## Output Parameter

- ***size -*** the needed length of the new format





## See Also
 `PetscFormatConvert()`, `PetscVSNPrintf()`, `PetscVFPrintf()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/fileio/mprint.c.html#PetscFormatConvertGetSize">src/sys/fileio/mprint.c</A>


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