From owner-cvs-all Mon Oct 8 18:30: 2 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BBE137B407; Mon, 8 Oct 2001 18:29:57 -0700 (PDT) Received: (from mike@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f991Tvs39485; Mon, 8 Oct 2001 18:29:57 -0700 (PDT) (envelope-from mike) Message-Id: <200110090129.f991Tvs39485@freefall.freebsd.org> From: Mike Barcroft Date: Mon, 8 Oct 2001 18:29:57 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/string strnstr.c Makefile.inc strstr.3 src/include string.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mike 2001/10/08 18:29:56 PDT Modified files: lib/libc/string Makefile.inc strstr.3 include string.h Added files: lib/libc/string strnstr.c Log: Add a new libc function, strnstr(3), which allows one to limit the number of characters that are searched. This is especially useful with file operations and non-NUL terminated strings. Silence from: -audit, -hackers MFC after: 5 days Revision Changes Path 1.7 +3 -1 src/include/string.h 1.24 +3 -1 src/lib/libc/string/Makefile.inc 1.1 +70 -0 src/lib/libc/string/strnstr.c (new) 1.8 +51 -12 src/lib/libc/string/strstr.3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message