]> Sergey Matveev's repositories - bfs.git/blob - src/typo.h
Skip mtab
[bfs.git] / src / typo.h
1 // Copyright © Tavian Barnes <tavianator@tavianator.com>
2 // SPDX-License-Identifier: 0BSD
3
4 #ifndef BFS_TYPO_H
5 #define BFS_TYPO_H
6
7 /**
8  * Find the "typo" distance between two strings.
9  *
10  * @param actual
11  *         The actual string typed by the user.
12  * @param expected
13  *         The expected valid string.
14  * @return The distance between the two strings.
15  */
16 int typo_distance(const char *actual, const char *expected);
17
18 #endif // BFS_TYPO_H