]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/string.c: use the name "C-string" in comments
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 May 2014 00:43:38 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:38 +0000 (10:43 +1000)
commit8d645c3a87e73df696ea0131fb4d129223368740
tree478897a3b83c35af4ac891b39fa047e8b4afb2d7
parentd98895ac89b602e37d640c53a04c68333f0bd97d
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>
lib/string.c