| 31 | } |
| 32 | |
| 33 | bool hasext(const char *exts, const char *ext) |
| 34 | { |
| 35 | int len = strlen(ext); |
| 36 | if(len) for(const char *cur = exts; (cur = strstr(cur, ext)); cur += len) |
| 37 | { |
| 38 | if((cur == exts || cur[-1] == ' ') && (cur[len] == ' ' || !cur[len])) return true; |
| 39 | } |
| 40 | return false; |
| 41 | } |
| 42 | |
| 43 | void glext(char *ext) |
| 44 | { |
no outgoing calls
no test coverage detected