cleaning comments

This commit is contained in:
2026-05-23 07:24:05 -03:00
parent f615ee0242
commit 8c14340adc
5 changed files with 26 additions and 26 deletions

View File

@@ -42,7 +42,7 @@
* 0 if equal or similar above the shold threshold
* -1 if a < b alphabetically (after normalization)
* +1 if a > b alphabetically (after normalization)
* On error: sets errno = EINVAL and returns 0 see ERROR CONVENTION above.
* On error: sets errno = EINVAL and returns 0 -- see ERROR CONVENTION above.
*
* Parameters:
* a, b input strings (NUL-terminated, may contain UTF-8 accented Latin chars).
@@ -68,17 +68,17 @@ int sequal(char *a, char *b, float shold);
* comparison. The Levenshtein ratio in *ratio is computed on the
* normalized contents of s1 / s2 (i.e. on the possibly-truncated buffer
* data), NOT on the original a / b strings. To compare without truncation,
* pass buffers at least as large as the longest input LEVN_SBUFF (256)
* pass buffers at least as large as the longest input -- LEVN_SBUFF (256)
* is the recommended floor.
*
* On error: same convention as sequal sets errno = EINVAL and returns 0;
* On error: same convention as sequal -- sets errno = EINVAL and returns 0;
* *ratio, s1, s2 are not modified in that case. See ERROR CONVENTION above.
*/
int sequal_full(char *a, char *b, float shold, float *ratio,
char *s1, size_t s1_size,
char *s2, size_t s2_size);
/* Compare two floats within ±delta.
/* Compare two floats within +/-delta.
* Returns:
* 0 if |a - b| <= delta
* -1 if a < b - delta