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

Function zipfileComparePath

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

** Both (const char*) arguments point to nul-terminated strings. Argument ** nB is the value of strlen(zB). This function returns 0 if the strings are ** identical, ignoring any trailing '/' character in either path. */

Source from the content-addressed store, hash-verified

7317** nB is the value of strlen(zB). This function returns 0 if the strings are
7318** identical, ignoring any trailing '/' character in either path. */
7319static int zipfileComparePath(const char *zA, const char *zB, int nB){
7320 int nA = (int)strlen(zA);
7321 if( nA>0 && zA[nA-1]=='/' ) nA--;
7322 if( nB>0 && zB[nB-1]=='/' ) nB--;
7323 if( nA==nB && memcmp(zA, zB, nA)==0 ) return 0;
7324 return 1;
7325}
7326
7327static int zipfileBegin(sqlite3_vtab *pVtab){
7328 ZipfileTab *pTab = (ZipfileTab*)pVtab;

Callers 1

zipfileUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected