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

Function shellDeleteFile

ThirdParty/sqlite/vtksqlite/shell.c:26649–26659  ·  view source on GitHub ↗

** Delete a file. */

Source from the content-addressed store, hash-verified

26647** Delete a file.
26648*/
26649int shellDeleteFile(const char *zFilename){
26650 int rc;
26651#ifdef _WIN32
26652 wchar_t *z = sqlite3_win32_utf8_to_unicode(zFilename);
26653 rc = _wunlink(z);
26654 sqlite3_free(z);
26655#else
26656 rc = unlink(zFilename);
26657#endif
26658 return rc;
26659}
26660
26661/*
26662** Try to delete the temporary file (if there is one) and free the

Callers 2

clearTempFileFunction · 0.85
do_meta_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected