:orphan: # PetscViewerAndFormatDestroy Destroys a `PetscViewerAndFormat` struct created with `PetscViewerAndFormatCreate()` ## Synopsis ``` #include "petscviewer.h" PetscErrorCode PetscViewerAndFormatDestroy(PetscViewerAndFormat **vf) ``` Collective ## Input Parameter - ***vf -*** the `PetscViewerAndFormat` to be destroyed. ## See Also [](sec_viewers), `PetscViewer`, `PetscViewerAndFormat`, `PetscViewerFormat`, `PetscViewerAndFormatCreate()`, `PetscViewerSocketOpen()`, `PetscViewerASCIIOpen()`, `PetscViewerCreate()`, `PetscViewerDrawOpen()`, `PetscViewerAndFormatDestroy()` ## Level developer ## Location src/sys/classes/viewer/interface/view.c ## Examples src/ksp/ksp/tutorials/ex2f.F90
src/snes/tutorials/ex30.c
src/ts/tutorials/ex12.c
src/ts/tutorials/ex52.c
src/ts/tutorials/ex7.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/interface/view.c) [Index of all Viewer routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)