version.c revision 56639
156639Speter/**************************************************************************** 256639Speter * Copyright (c) 1999 Free Software Foundation, Inc. * 356639Speter * * 456639Speter * Permission is hereby granted, free of charge, to any person obtaining a * 556639Speter * copy of this software and associated documentation files (the * 656639Speter * "Software"), to deal in the Software without restriction, including * 756639Speter * without limitation the rights to use, copy, modify, merge, publish, * 856639Speter * distribute, distribute with modifications, sublicense, and/or sell * 956639Speter * copies of the Software, and to permit persons to whom the Software is * 1056639Speter * furnished to do so, subject to the following conditions: * 1156639Speter * * 1256639Speter * The above copyright notice and this permission notice shall be included * 1356639Speter * in all copies or substantial portions of the Software. * 1456639Speter * * 1556639Speter * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 1656639Speter * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 1756639Speter * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 1856639Speter * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 1956639Speter * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 2056639Speter * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 2156639Speter * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 2256639Speter * * 2356639Speter * Except as contained in this notice, the name(s) of the above copyright * 2456639Speter * holders shall not be used in advertising or otherwise to promote the * 2556639Speter * sale, use or other dealings in this Software without prior written * 2656639Speter * authorization. * 2756639Speter ****************************************************************************/ 2856639Speter 2956639Speter/**************************************************************************** 3056639Speter * Author: Thomas E. Dickey <dickey@clark.net> 1999 * 3156639Speter ****************************************************************************/ 3256639Speter 3356639Speter#include <curses.priv.h> 3456639Speter 3556639SpeterMODULE_ID("$Id: version.c,v 1.1 1999/10/23 13:28:49 tom Exp $") 3656639Speter 3756639Speterconst char * 3856639Spetercurses_version(void) 3956639Speter{ 4056639Speter static char my_version[80]; 4156639Speter 4256639Speter T((T_CALLED("curses_version()"))); 4356639Speter sprintf(my_version, "ncurses %d.%d.%d", 4456639Speter NCURSES_VERSION_MAJOR, 4556639Speter NCURSES_VERSION_MINOR, 4656639Speter NCURSES_VERSION_PATCH); 4756639Speter returnPtr(my_version); 4856639Speter} 49