]> www.ginac.de Git - ginac.git/blob - ginsh/strdup.c
- created AUTHORS and README files, updated INSTALL
[ginac.git] / ginsh / strdup.c
1 /*
2  *  Replacement for strdup() function
3  */
4
5 char *strdup(const char *s)
6 {
7         char *n = (char *)malloc(strlen(s) + 1);
8         strcpy(n, s);
9         return n;
10 }