]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_string.c: add some testcases for strchr and strnchr
authorPeter Rosin <peda@axentia.se>
Tue, 16 Jul 2019 23:27:21 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jul 2019 02:23:22 +0000 (19:23 -0700)
commit0c609c3e1dfa50445cbf64aa7b157cbeb8ee142f
treeb1aa30390186d63f5f8c1cbc24045598033b1314
parent36d9733574844545185920a052be812e95fac48b
lib/test_string.c: add some testcases for strchr and strnchr

Make sure that the trailing NUL is considered part of the string and can
be found.

Link: http://lkml.kernel.org/r/20190506124634.6807-4-peda@axentia.se
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_string.c