============ COM_CompareExtension string compare the end of the strings and return qtrue if strings match ============ */
| 84 | ============ |
| 85 | */ |
| 86 | qboolean COM_CompareExtension(const char *in, const char *ext) |
| 87 | { |
| 88 | int inlen, extlen; |
| 89 | |
| 90 | inlen = strlen(in); |
| 91 | extlen = strlen(ext); |
| 92 | |
| 93 | if(extlen <= inlen) |
| 94 | { |
| 95 | in += inlen - extlen; |
| 96 | |
| 97 | if(!Q_stricmp(in, ext)) |
| 98 | return qtrue; |
| 99 | } |
| 100 | |
| 101 | return qfalse; |
| 102 | } |
| 103 | |
| 104 | /* |
| 105 | ================== |
no test coverage detected