
25 Nov
2021
25 Nov
'21
1:57 p.m.
On a Thursday in 2021, Peter Krempa wrote:
As a microoprimization when checking whether length of a string fits into a limit we don't necessarily need to calculate the full lenght but
length
can use strnlen to check only LIMIT+1 chars. Add a macro which will simplify the expressions.
Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/internal.h | 9 +++++++++ 1 file changed, 9 insertions(+)