]> git.baikalelectronics.ru Git - kernel.git/commit
lib/string.c: use the name "C-string" in comments
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Jun 2014 23:11:47 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:18 +0000 (16:54 -0700)
commit79705db3782149bb177961a44e72797dbd01860e
treeae450418fa5963507fb3aee838c0e0077313f53b
parente4c1697c2df104ad02e120e427a79d7f21f0730c
lib/string.c: use the name "C-string" in comments

For strncpy() and friends the source string may or may not have an actual
NUL character at the end.  The documentation is confusing in this because
it specifically mentions that you are passing a "NUL-terminated" string.
Wikipedia says that "C-string" is an alternative name we can use instead.

http://en.wikipedia.org/wiki/Null-terminated_string

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/string.c