1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
15 #include "os_regex_internal.h"
18 /* Check if a specific string is numeric (like "129544") */
19 int OS_StrIsNum(const char *str)
25 while (*str != '\0') {
35 /* Return the number of characters that both strings have in common */
36 size_t OS_StrHowClosedMatch(const char *str1, const char *str2)
40 /* They don't match if any of them is null */
46 if (str1[count] != str2[count]) {
51 } while ((str1[count] != '\0') && (str2[count] != '\0'));