# PetscSetHelpVersionFunctions
Sets functions that print help and version information before the PETSc help and version information is printed. Must call BEFORE `PetscInitialize()`. This routine enables a "higher-level" package that uses PETSc to print its messages first. 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscSetHelpVersionFunctions(PetscErrorCode (*help)(MPI_Comm), PetscErrorCode (*version)(MPI_Comm))
```

## Input Parameters

- ***help -*** the help function (may be NULL)
- ***version -*** the version function (may be NULL)





## Level
developer

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


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