PetscViewerStringSetOwnString

tells the viewer that it now owns the string and is responsible for freeing it

Synopsis

#include "petscsys.h"  
PetscErrorCode  PetscViewerStringSetOwnString(PetscViewer viewer)
Logically Collective on PetscViewer

Input Parameters

viewer - string viewer

Notes: If you call this the string must have been obtained with PetscMalloc() and you cannot free the string

Level: advanced

See Also

PetscViewerStringOpen(), PETSCVIEWERSTRING, PetscViewerStringGetStringRead(), PetscViewerStringSPrintf(),
PetscViewerStringSetString()

Location:stringv.c