X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fcardfile.c;h=ef224c9b9006e82418ac53a92cee0ea759d968be;hp=0bcffbb1ec6a0cbd198b8888273082977d7deafa;hb=1385381954c39dc95558adc87fad457046959cc1;hpb=91fa4688e82518794fcf0c32a36f3fcca5e4c2d5 diff --git a/test/cardfile.c b/test/cardfile.c index 0bcffbb1..ef224c9b 100644 --- a/test/cardfile.c +++ b/test/cardfile.c @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: cardfile.c,v 1.40 2012/10/27 19:37:56 tom Exp $ + * $Id: cardfile.c,v 1.41 2012/11/03 19:26:50 tom Exp $ * * File format: text beginning in column 1 is a title; other text is content. */ @@ -76,20 +76,6 @@ failed(const char *s) ExitProgram(EXIT_FAILURE); } -#if !HAVE_STRDUP -#define strdup my_strdup -static char * -strdup(const char *s) -{ - char *p = typeMalloc(char, strlen(s) + 1); - if (p) - strcpy(p, s); - else - failed("strdup"); - return (p); -} -#endif /* not HAVE_STRDUP */ - static const char * skip(const char *buffer) {