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