mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
doc: clarify a comment in system.h
* src/system.h (STRNCMP_LIT): Clarify comment. Suggested by Bruno Haible.
This commit is contained in:
1 parent
69fed0dfec
commit
4624581d53
1 file changed
+1
-1
+1
-1
@@ -186,7 +186,7 @@ select_plural (uintmax_t n)
|
||||
#define STRPREFIX(a, b) (strncmp(a, b, strlen (b)) == 0)
|
||||
|
||||
/* Just like strncmp, but the second argument must be a literal string
|
||||
and you don't specify the length. */
|
||||
and you don't specify the length; that comes from the literal. */
|
||||
#define STRNCMP_LIT(s, literal) \
|
||||
strncmp (s, "" literal "", sizeof (literal) - 1)
|
||||
|
||||
|
||||
Reference in new issue
Block a user