determine whether 'str' ends in 'chkstr' */
| 238 | |
| 239 | /* determine whether 'str' ends in 'chkstr' */ |
| 240 | boolean |
| 241 | str_end_is(const char *str, const char *chkstr) |
| 242 | { |
| 243 | int clen = (int) strlen(chkstr); |
| 244 | |
| 245 | if ((int) strlen(str) >= clen) |
| 246 | return (boolean) (!strncmp(eos((char *) str) - clen, chkstr, clen)); |
| 247 | return FALSE; |
| 248 | } |
| 249 | |
| 250 | /* return max line length from buffer comprising newline-separated strings */ |
| 251 | int |
no test coverage detected