summaryrefslogtreecommitdiff
path: root/libiberty/strncmp.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
committerDJ Delorie <dj@redhat.com>2001-09-26 18:45:50 +0000
commit39423523167c47f72822dbb9eb3ab4a0dfeafe68 (patch)
treeb437d1ed0d3cb7e6a0a67e5dd30ef19abbedb95e /libiberty/strncmp.c
parent4e6667ac4f987fecbcf576513c70485a4718712e (diff)
downloadbinutils-gdb-39423523167c47f72822dbb9eb3ab4a0dfeafe68.tar.gz
merge from gcc
Diffstat (limited to 'libiberty/strncmp.c')
-rw-r--r--libiberty/strncmp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libiberty/strncmp.c b/libiberty/strncmp.c
index b3b9de16b10..819cea6cb58 100644
--- a/libiberty/strncmp.c
+++ b/libiberty/strncmp.c
@@ -1,6 +1,17 @@
/* strncmp -- compare two strings, stop after n bytes.
This function is in the public domain. */
+/*
+
+@deftypefn Supplemental int strncmp (const char *@var{s1}, const char *@var{s2}, size_t @var{n})
+
+Compares the first @var{n} bytes of two strings, returning a value as
+@code{strcmp}.
+
+@end deftypefn
+
+*/
+
#include <ansidecl.h>
#ifdef __STDC__
#include <stddef.h>