Change regcache list to be an hash map
[deliverable/binutils-gdb.git] / libiberty / strdup.c
index 071a4a401af754fb847734f54bc7fc60e3204744..78c2093b61a3d05c758c9c14814ef38eb468633b 100644 (file)
@@ -10,19 +10,14 @@ Returns a pointer to a copy of @var{s} in memory obtained from
 */
 
 #include <ansidecl.h>
-#ifdef ANSI_PROTOTYPES
 #include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
 
-extern size_t  strlen PARAMS ((const char*));
-extern PTR     malloc PARAMS ((size_t));
-extern PTR     memcpy PARAMS ((PTR, const PTR, size_t));
+extern size_t  strlen (const char*);
+extern PTR     malloc (size_t);
+extern PTR     memcpy (PTR, const PTR, size_t);
 
 char *
-strdup(s)
-     char *s;
+strdup(const char *s)
 {
   size_t len = strlen (s) + 1;
   char *result = (char*) malloc (len);
This page took 0.047575 seconds and 4 git commands to generate.