Date: Wed, 23 Oct 2002 19:53:45 -0700 (PDT) From: "Tim J. Robbins" <tjr@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/string wcsstr.c Message-ID: <200210240253.g9O2rjNg057556@repoman.freebsd.org>
index | next in thread | raw e-mail
tjr 2002/10/23 19:53:45 PDT
Modified files:
lib/libc/string wcsstr.c
Log:
Replace wcsstr() with an implementation based on strstr(), which is far
more efficient. The problem with the previous implementation was that it
calculated the length of the first argument ("big") with wcslen() when
it was not necessary.
Revision Changes Path
1.8 +32 -38 src/lib/libc/string/wcsstr.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210240253.g9O2rjNg057556>
