2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: matchstr.c,v 1.7 2007-01-03 08:42:15 adam Exp $
10 * \brief Implements loose string matching
21 #include <yaz/yaz-util.h>
23 int yaz_matchstr(const char *s1, const char *s2)
27 unsigned char c1 = *s1;
28 unsigned char c2 = *s2;
53 int yaz_strcmp_del(const char *a, const char *b, const char *b_del)
62 if (b_del && strchr(b_del, *b))
69 void __assert_fail (const char *assertion, const char *file,
70 unsigned int line, const char *function)
72 fprintf (stderr, "%s in file %s line %d func %s\n",
73 assertion, file, line, function);
81 * indent-tabs-mode: nil
83 * vim: shiftwidth=4 tabstop=8 expandtab