commit | d1a5dc5e6accbeaabe59e3d55b47f15a8b19c2bd | [log] [tgz] |
---|---|---|
author | Peter Rosin <peda@axentia.se> | Tue Jul 16 16:27:21 2019 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Jul 16 19:23:22 2019 -0700 |
tree | b1aa30390186d63f5f8c1cbc24045598033b1314 | |
parent | 33d6e0ff68af74be0c846c8e042e84a9a1a0561e [diff] |
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>