Charles Melice wrote:
This is a version without locals nor toolbelt extensions. Don't ask me
how portable it is. It should be, but it isn't tested.
Hans Bezemer
-- CUT HERE --
\ 4tH library - WILDCARD - Copyright 2006 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License
\ int wildcmp (const char *wild, const char *string) {
\ // Written by Jack Handy - jakkhandy@
hotmail.com
\ const char *cp = NULL, *mp = NULL;
\ while ((*string) && (*wild != '*')) {
\ if ((*wild != *string) && (*wild != '?')) {
\ return 0;
\ }
\ wild++;
\ string++;
\ }