Commit 4e394293 by Kazu Hirata Committed by Kazu Hirata

* strdup.c (strdup): Constify the argument.

From-SVN: r75929
parent faa5faee
2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
* strdup.c (strdup): Constify the argument.
2004-01-14 Loren J. Rittle <ljrittle@acm.org>
* Makefile.in (distclean): Remove config.cache.
......
......@@ -22,7 +22,7 @@ extern PTR memcpy PARAMS ((PTR, const PTR, size_t));
char *
strdup(s)
char *s;
const char *s;
{
size_t len = strlen (s) + 1;
char *result = (char*) malloc (len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment