aboutsummaryrefslogtreecommitdiff
path: root/libiberty/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/strdup.c')
-rw-r--r--libiberty/strdup.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libiberty/strdup.c b/libiberty/strdup.c
index 1785b34..a01cedf 100644
--- a/libiberty/strdup.c
+++ b/libiberty/strdup.c
@@ -1,3 +1,14 @@
+/*
+
+@deftypefn Supplemental char* strdup (const char *@var{s})
+
+Returns a pointer to a copy of @var{s} in memory obtained from
+@code{malloc}, or NULL if insufficient memory was available.
+
+@end deftypefn
+
+*/
+
char *
strdup(s)
char *s;