Per Inge Mathisen wrote: > On 10/26/07, Giel van Schijndel <[EMAIL PROTECTED]> wrote: >> * Add file strlfuncs.h; this file contains an inline implementation of >> strlcpy and strlcat (safer variants of strncpy and strncat respectively) > > Maybe you can explain the purpose of STR_L_FUNC_TRUNCATION_DETECT ? > The "original" strlcpy() and strlcat() functions will return the amount of characters the destination string would be if no truncation has occurred. When STR_L_FUNC_TRUNCATION_DETECT is defined this behaviour will be simulated. Right now though this behaviour isn't required, and as such it isn't compiled in by leaving STR_L_FUNC_TRUNCATION_DETECT undefined.
-- Giel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
