Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).
| 9242 | // Returns true iff ch appears anywhere in str (excluding the |
| 9243 | // terminating '\0' character). |
| 9244 | bool IsInSet(char ch, const char* str) { |
| 9245 | return ch != '\0' && strchr(str, ch) != NULL; |
| 9246 | } |
| 9247 | |
| 9248 | // Returns true iff ch belongs to the given classification. Unlike |
| 9249 | // similar functions in <ctype.h>, these aren't affected by the |
no outgoing calls
no test coverage detected