MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / strlen30

Function strlen30

src/database/cppsqlite3.cpp:975–979  ·  view source on GitHub ↗

** Compute a string length that is limited to what can be stored in ** lower 30 bits of a 32-bit signed integer. */

Source from the content-addressed store, hash-verified

973** lower 30 bits of a 32-bit signed integer.
974*/
975static int strlen30(const char *z){
976 const char *z2 = z;
977 while( *z2 ){ z2++; }
978 return 0x3fffffff & (int)(z2 - z);
979}
980
981
982/* zIn is either a pointer to a NULL-terminated string in memory obtained

Callers 4

appendTextFunction · 0.85
run_schema_dump_queryFunction · 0.85
save_err_msgFunction · 0.85
process_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected