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

Function str_in_array

modules/dasSQLITE/sqlite/shell.c:18363–18369  ·  view source on GitHub ↗

** Parameter azArray points to a zero-terminated array of strings. zStr ** points to a single nul-terminated string. Return non-zero if zStr ** is equal, according to strcmp(), to any of the strings in the array. ** Otherwise, return zero. */

Source from the content-addressed store, hash-verified

18361** Otherwise, return zero.
18362*/
18363static int str_in_array(const char *zStr, const char **azArray){
18364 int i;
18365 for(i=0; azArray[i]; i++){
18366 if( 0==cli_strcmp(zStr, azArray[i]) ) return 1;
18367 }
18368 return 0;
18369}
18370
18371/*
18372** If compiled statement pSql appears to be an EXPLAIN statement, allocate

Callers 1

explain_data_prepareFunction · 0.85

Calls 1

cli_strcmpFunction · 0.85

Tested by

no test coverage detected