commit | 178652b06da731769108b0cc25f999aaf50f4b9f | [log] [tgz] |
---|---|---|
author | Jack Jansen <jack.jansen@cwi.nl> | Thu Oct 12 10:22:57 1995 +0000 |
committer | Jack Jansen <jack.jansen@cwi.nl> | Thu Oct 12 10:22:57 1995 +0000 |
tree | 7426d6254fb9d5418bfca984ddc74893aaa77fd0 | |
parent | d0f26784fef4333c1b399732679ef92b4d1d2bbd [diff] |
Export strdup (parsermodule needs it)
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c index 7c34360..2fbb28e 100644 --- a/Mac/Python/macgetargv.c +++ b/Mac/Python/macgetargv.c
@@ -62,9 +62,11 @@ static int arg_count; static char *arg_vector[256]; -/* Duplicate a string to the heap */ +/* Duplicate a string to the heap. We also export this since it isn't standard +** and others use it +*/ -static char * +char * strdup(char *src) { char *dst = malloc(strlen(src) + 1);