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 <[email protected]>
---
src/internal.h | 9 +++++++++
1 file changed, 9 insertions(+)

Attachment: signature.asc
Description: PGP signature

Reply via email to