diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-21 14:56:03 -0700 |
---|---|---|
committer | John Hawthorn <john.hawthorn@gmail.com> | 2016-05-21 14:56:25 -0700 |
commit | 2b3c3a85ec8aa8b4b94c0e594c32449dd70b4d26 (patch) | |
tree | b72c2815f22fbae416cf10284c5acd273c75af7f /src/match.h | |
parent | 45499644d85a9ba93dd9f1504d1ca7df15b60148 (diff) |
Move sources into src directory
Diffstat (limited to 'src/match.h')
-rw-r--r-- | src/match.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/match.h b/src/match.h new file mode 100644 index 0000000..941b62e --- /dev/null +++ b/src/match.h @@ -0,0 +1,12 @@ +#ifndef MATCH_H +#define MATCH_H MATCH_H + +typedef double score_t; +#define SCORE_MAX INFINITY +#define SCORE_MIN -INFINITY + +int has_match(const char *needle, const char *haystack); +score_t match_positions(const char *needle, const char *haystack, size_t *positions); +score_t match(const char *needle, const char *haystack); + +#endif |