MCPcopy Create free account
hub / github.com/audacity/audacity / zipfileResetCursor

Function zipfileResetCursor

lib-src/sqlite/shell.c:6322–6338  ·  view source on GitHub ↗

** Reset a cursor back to the state it was in when first returned ** by zipfileOpen(). */

Source from the content-addressed store, hash-verified

6320** by zipfileOpen().
6321*/
6322static void zipfileResetCursor(ZipfileCsr *pCsr){
6323 ZipfileEntry *p;
6324 ZipfileEntry *pNext;
6325
6326 pCsr->bEof = 0;
6327 if( pCsr->pFile ){
6328 fclose(pCsr->pFile);
6329 pCsr->pFile = 0;
6330 zipfileEntryFree(pCsr->pCurrent);
6331 pCsr->pCurrent = 0;
6332 }
6333
6334 for(p=pCsr->pFreeEntry; p; p=pNext){
6335 pNext = p->pNext;
6336 zipfileEntryFree(p);
6337 }
6338}
6339
6340/*
6341** Destructor for an ZipfileCsr.

Callers 2

zipfileCloseFunction · 0.85
zipfileFilterFunction · 0.85

Calls 1

zipfileEntryFreeFunction · 0.85

Tested by

no test coverage detected