match.h (376B)
1 #ifndef MATCH_H 2 #define MATCH_H MATCH_H 3 4 #include <math.h> 5 6 typedef double score_t; 7 #define SCORE_MAX INFINITY 8 #define SCORE_MIN -INFINITY 9 10 #define MATCH_MAX_LEN 1024 11 12 int has_match(const char *needle, const char *haystack); 13 score_t match_positions(const char *needle, const char *haystack, size_t *positions); 14 score_t match(const char *needle, const char *haystack); 15 16 #endif