diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-12 10:22:57 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-12 10:22:57 (GMT) |
commit | 178652b06da731769108b0cc25f999aaf50f4b9f (patch) | |
tree | 7426d6254fb9d5418bfca984ddc74893aaa77fd0 /Mac/Python/macgetargv.c | |
parent | d0f26784fef4333c1b399732679ef92b4d1d2bbd (diff) | |
download | cpython-178652b06da731769108b0cc25f999aaf50f4b9f.zip cpython-178652b06da731769108b0cc25f999aaf50f4b9f.tar.gz cpython-178652b06da731769108b0cc25f999aaf50f4b9f.tar.bz2 |
Export strdup (parsermodule needs it)
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r-- | Mac/Python/macgetargv.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 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); |