X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fstpncpy.c;h=641b8f9cf937fef9eefc1e5b06145dc019ec2ca5;hb=458f12eda16ee19354ca1937daef45d79bc7ad46;hp=f97206a09e67f8c7c480bb31f8a3dd7b5dd1005f;hpb=ee58dffdbc2874e053c60629b2f1c04384e2248d;p=gcc.git diff --git a/libiberty/stpncpy.c b/libiberty/stpncpy.c index f97206a09e6..641b8f9cf93 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-2020 Free Software Foundation, Inc. Written by Kaveh R. Ghazi . 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})