lib: Introduce strnstr()
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 14 Jan 2010 02:53:55 +0000 (10:53 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Jan 2010 03:38:09 +0000 (22:38 -0500)
commitd5f1fb53353edc38da326445267c1df0c9676df2
tree42def644ebd0d343f2eba9e625f4b9b1ea8a36f0
parenta3291c14ecf0a995e30d993b7f2cae031de98727
lib: Introduce strnstr()

It differs strstr() in that it limits the length to be searched
in the first string.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4B4E8743.6030805@cn.fujitsu.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/string.h
lib/string.c