mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Export strdup (parsermodule needs it)
This commit is contained in:
parent
d0f26784fe
commit
178652b06d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue