Hash :
1c6a3cf4
Author :
Date :
2015-02-07T18:09:00
fstrcmp: don't assume strlen < INT_MAX * lib/fstrcmp.c: Include stddef.h and stdint.h. (uintptr_t): Remove, as we're now assuming stdint. (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded): Prefer ptrdiff_t to int when the value could exceed INT_MAX if the input string is long. (fstrcmp_bounded): Check for size-calculation overflow. Prefer uintptr_t to size_t when the underlying value is a pointer casted to an unsigned integer. Avoid unnecessary 'buffer != NULL' test. * modules/fstrcmp (Depends-on): Add stdint.
Description:
Fuzzy string comparison.
Files:
lib/fstrcmp.h
lib/fstrcmp.c
Depends-on:
diffseq
lock
tls
minmax
stdint
xalloc
configure.ac:
Makefile.am:
lib_SOURCES += fstrcmp.h fstrcmp.c
Include:
"fstrcmp.h"
License:
GPL
Maintainer:
all