]> 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)
commit9ace7f60161a8f908495699bcc8fd321a293bc23
treeae450418fa5963507fb3aee838c0e0077313f53b
parentf2993b273cff1b887a335041f4c2c682286c72a6
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