1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2011 Index Data
3 * See the file LICENSE for details.
8 * \brief a couple of string utilities
19 #include <yaz/matchstr.h>
21 int yaz_matchstr(const char *s1, const char *s2)
25 unsigned char c1 = *s1;
26 unsigned char c2 = *s2;
51 int yaz_strcmp_del(const char *a, const char *b, const char *b_del)
60 if (b_del && strchr(b_del, *b))
65 int yaz_memcmp(const void *a, const void *b, size_t len_a, size_t len_b)
67 size_t m_len = len_a < len_b ? len_a : len_b;
68 int r = memcmp(a, b, m_len);
77 * c-file-style: "Stroustrup"
78 * indent-tabs-mode: nil
80 * vim: shiftwidth=4 tabstop=8 expandtab