/*
* Sherlock Library -- Content-Type Pattern Matching
*
- * (c) 1997 Martin Mares, <mj@atrey.karlin.mff.cuni.cz>
+ * (c) 1997 Martin Mares <mj@ucw.cz>
*/
-#include <stdio.h>
-
-#include "lib.h"
-#include "string.h"
+#include "lib/lib.h"
+#include "lib/chartype.h"
int
match_ct_patt(byte *p, byte *t)
return 0;
p++;
}
- if (*t != '/')
+ if (*t++ != '/')
return 0;
- if (*p == '*' && p[1] == '/') /* "*" on the right-hand side */
+ if (*p == '*' && !p[1]) /* "*" on the right-hand side */
return 1;
while (*p)
if (Cupcase(*p++) != Cupcase(*t++))