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

Function str_in_array

lib-src/sqlite/shell.c:12930–12936  ·  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

12928** Otherwise, return zero.
12929*/
12930static int str_in_array(const char *zStr, const char **azArray){
12931 int i;
12932 for(i=0; azArray[i]; i++){
12933 if( 0==strcmp(zStr, azArray[i]) ) return 1;
12934 }
12935 return 0;
12936}
12937
12938/*
12939** If compiled statement pSql appears to be an EXPLAIN statement, allocate

Callers 1

explain_data_prepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected