summaryrefslogtreecommitdiff
path: root/libiberty/stpncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiberty/stpncpy.c')
-rw-r--r--libiberty/stpncpy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libiberty/stpncpy.c b/libiberty/stpncpy.c
index f97206a09e6..83d54e60cb8 100644
--- a/libiberty/stpncpy.c
+++ b/libiberty/stpncpy.c
@@ -1,5 +1,5 @@
/* Implement the stpncpy function.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2011 Free Software Foundation, Inc.
Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
This file is part of the libiberty library.
@@ -20,7 +20,8 @@ Boston, MA 02110-1301, USA. */
/*
-@deftypefn Supplemental char* stpncpy (char *@var{dst}, const char *@var{src}, size_t @var{len})
+@deftypefn Supplemental char* stpncpy (char *@var{dst}, const char *@var{src}, @
+ size_t @var{len})
Copies the string @var{src} into @var{dst}, copying exactly @var{len}
and padding with zeros if necessary. If @var{len} < strlen(@var{src})