From: Jack Jansen Date: Thu, 12 Oct 1995 10:22:57 +0000 (+0000) Subject: Export strdup (parsermodule needs it) X-Git-Tag: v1.3~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=178652b06da731769108b0cc25f999aaf50f4b9f;p=thirdparty%2FPython%2Fcpython.git Export strdup (parsermodule needs it) --- diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c index 7c3436017810..2fbb28e69b4c 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);