X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdemo_menus.c;h=8f19281dfa6945d06119cfbfabac1d8b983b5aa8;hb=5ae2721913c0d2adde0d65063e37a723bf8a0987;hp=9edab95cccf8801b0e69ad6183b639f743e0a791;hpb=a3754ea95eea6118bd49f0507f35a7ef15b41a6c;p=ncurses.git diff --git a/test/demo_menus.c b/test/demo_menus.c index 9edab95c..8f19281d 100644 --- a/test/demo_menus.c +++ b/test/demo_menus.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_menus.c,v 1.35 2012/09/09 00:01:20 tom Exp $ + * $Id: demo_menus.c,v 1.36 2012/11/03 19:27:01 tom Exp $ * * Demonstrate a variety of functions from the menu library. * Thomas Dickey - 2005/4/9 @@ -109,18 +109,6 @@ static MENU *mpSelect; static bool loaded_file = FALSE; -#if !HAVE_STRDUP -#define strdup my_strdup -static char * -strdup(char *s) -{ - char *p = typeMalloc(char, strlen(s) + 1); - if (p) - strcpy(p, s); - return (p); -} -#endif /* not HAVE_STRDUP */ - /* Common function to allow ^T to toggle trace-mode in the middle of a test * so that trace-files can be made smaller. */