summaryrefslogtreecommitdiff
path: root/match.h
blob: 941b62eef371d366f5980ab0f8d391d671a5d20a (plain)
1
2
3
4
5
6
7
8
9
10
11
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