** 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. */
| 18361 | ** Otherwise, return zero. |
| 18362 | */ |
| 18363 | static 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 |
no test coverage detected