MCPcopy Create free account
hub / github.com/Kitware/VTK / clearTempFile

Function clearTempFile

ThirdParty/sqlite/vtksqlite/shell.c:26665–26671  ·  view source on GitHub ↗

** Try to delete the temporary file (if there is one) and free the ** memory used to hold the name of the temp file. */

Source from the content-addressed store, hash-verified

26663** memory used to hold the name of the temp file.
26664*/
26665static void clearTempFile(ShellState *p){
26666 if( p->zTempFile==0 ) return;
26667 if( p->doXdgOpen ) return;
26668 if( shellDeleteFile(p->zTempFile) ) return;
26669 sqlite3_free(p->zTempFile);
26670 p->zTempFile = 0;
26671}
26672
26673/*
26674** Create a new temp file name with the given suffix.

Callers 4

newTempFileFunction · 0.85
do_meta_commandFunction · 0.85
process_inputFunction · 0.85
wmainFunction · 0.85

Calls 1

shellDeleteFileFunction · 0.85

Tested by

no test coverage detected