Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macgetargv.c @ 3215:3b2be811a66a legacy-trunk
Export strdup (parsermodule needs it)
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 12 Oct 1995 10:22:57 +0000 |
| parents | 2cb1416010b3 |
| children | 1cf6e10522e0 |
line wrap: on
line diff
--- a/Mac/Python/macgetargv.c Thu Oct 12 10:22:29 1995 +0000 +++ b/Mac/Python/macgetargv.c Thu Oct 12 10:22:57 1995 +0000 @@ -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);
