MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / strlenChar

Function strlenChar

modules/dasSQLITE/sqlite/shell.c:741–747  ·  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

739** count as a single character.
740*/
741static int strlenChar(const char *z){
742 int n = 0;
743 while( *z ){
744 if( (0xc0&*(z++))!=0x80 ) n++;
745 }
746 return n;
747}
748
749/*
750** Return open FILE * if zFile exists, can be opened for read

Callers 2

shell_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected