projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ld/
[deliverable/binutils-gdb.git]
/
libiberty
/
stpncpy.c
diff --git
a/libiberty/stpncpy.c
b/libiberty/stpncpy.c
index 0984340ba2c38f1aca6a20ef310c1ec5af61a902..f97206a09e67f8c7c480bb31f8a3dd7b5dd1005f 100644
(file)
--- a/
libiberty/stpncpy.c
+++ b/
libiberty/stpncpy.c
@@
-15,8
+15,8
@@
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with libiberty; see the file COPYING.LIB. If
You should have received a copy of the GNU Library General Public
License along with libiberty; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-Boston, MA 0211
1-1307
, USA. */
+not, write to the Free Software Foundation, Inc., 5
1 Franklin Street - Fifth Floor
,
+Boston, MA 0211
0-1301
, USA. */
/*
/*
@@
-32,20
+32,13
@@
strlen(@var{src}).
*/
#include <ansidecl.h>
*/
#include <ansidecl.h>
-#ifdef ANSI_PROTOTYPES
#include <stddef.h>
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
-extern size_t strlen
PARAMS ((const char *)
);
-extern
PTR strncpy PARAMS ((char *, const char *, size_t)
);
+extern size_t strlen
(const char *
);
+extern
char *strncpy (char *, const char *, size_t
);
char *
char *
-stpncpy (dst, src, len)
- char *dst;
- const char *src;
- size_t len;
+stpncpy (char *dst, const char *src, size_t len)
{
size_t n = strlen (src);
if (n > len)
{
size_t n = strlen (src);
if (n > len)
This page took
0.023207 seconds
and
4
git commands to generate.