> Here is a patch I promised - it replaces strcpy with faster mempcy in the
> most used string functions HTSACopy and HTSACat (used via macros StrAllocCopy
> and StrAllocCat).
>
> Best regards,
> -Vlad
>
> diff -ru old/WWW/Library/Implementation/HTString.c
>fixed/WWW/Library/Implementation/HTString.c
> --- old/WWW/Library/Implementation/HTString.c Thu Nov 4 00:31:15 1999
> +++ fixed/WWW/Library/Implementation/HTString.c Mon Mar 27 20:06:58 2000
> @@ -269,11 +269,12 @@
> {
> if (src != 0) {
> if (src != *dest) {
> + int srclen = strlen(src);
close (srclen should be an unsigned type, i.e., size_t).
but have you measured this? (on some implementations, strcpy is inlined,
so it's much the same).
--
Thomas E. Dickey
[EMAIL PROTECTED]
http://www.clark.net/pub/dickey