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

Function strlenChar

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

** Return the length of a string in characters. Multibyte UTF8 characters ** count as a single character. */

Source from the content-addressed store, hash-verified

632** count as a single character.
633*/
634static int strlenChar(const char *z){
635 int n = 0;
636 while( *z ){
637 if( (0xc0&*(z++))!=0x80 ) n++;
638 }
639 return n;
640}
641
642/*
643** Return true if zFile does not exist or if it is not an ordinary file.

Callers 2

shell_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected