X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_keyok.c;h=8724d9819ea05ab51af3a34beff13a9b55b098f1;hp=670bd54f2649d5ffa3d283922bda816f2b6eec11;hb=027ae42953e3186daed8f3882da73de48291b606;hpb=a8987e73ec254703634802b4f7ee30d3a485524d diff --git a/test/demo_keyok.c b/test/demo_keyok.c index 670bd54f..8724d981 100644 --- a/test/demo_keyok.c +++ b/test/demo_keyok.c @@ -1,5 +1,32 @@ +/**************************************************************************** + * Copyright (c) 2002-2003,2006 Free Software Foundation, Inc. * + * * + * Permission is hereby granted, free of charge, to any person obtaining a * + * copy of this software and associated documentation files (the * + * "Software"), to deal in the Software without restriction, including * + * without limitation the rights to use, copy, modify, merge, publish, * + * distribute, distribute with modifications, sublicense, and/or sell * + * copies of the Software, and to permit persons to whom the Software is * + * furnished to do so, subject to the following conditions: * + * * + * The above copyright notice and this permission notice shall be included * + * in all copies or substantial portions of the Software. * + * * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * + * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * + * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * + * * + * Except as contained in this notice, the name(s) of the above copyright * + * holders shall not be used in advertising or otherwise to promote the * + * sale, use or other dealings in this Software without prior written * + * authorization. * + ****************************************************************************/ /* - * $Id: demo_keyok.c,v 1.3 2003/05/17 23:18:34 tom Exp $ + * $Id: demo_keyok.c,v 1.5 2006/11/04 20:09:51 tom Exp $ * * Demonstrate the keyok() function. * Thomas Dickey - 2002/11/23 @@ -43,7 +70,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) } } endwin(); - return EXIT_SUCCESS; + ExitProgram(EXIT_SUCCESS); } #else int