Re: cvs: php4 /sapi/thttpd thttpd.c
| From: | Sascha Schumann | Date: | Thu, 03 May 2001 09:23:47 +0000 |
| Subject: | Re: cvs: php4 /sapi/thttpd thttpd.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-5494@lists.php.net to get a copy of this message | ||
On Thu, 3 May 2001, Andi Gutmans wrote:
> Send me the script :)
> And what is the average length of that returned string?
the average length of an IP?
The results were obtained from a FreeBSD 4.2 machine.
#include <string.h>
#define CA "195.123.123.123"
main() {
char buf[512];
int i = 10000000;
while (i-- > 0) {
#if 0
strlcpy(buf, CA, sizeof(buf));
#else
memcpy(buf, CA, strlen(CA)+1);
#endif
}
}
- Sascha Experience IRCG
http://schumann.cx/ http://schumann.cx/ircg