** 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. */
| 12928 | ** Otherwise, return zero. |
| 12929 | */ |
| 12930 | static 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 |
no outgoing calls
no test coverage detected