xref: /freebsd/contrib/ncurses/ncurses/base/version.c (revision 7a69bbfb)
11759abf3SPeter Wemm /****************************************************************************
27a69bbfbSPeter Wemm  * Copyright (c) 1999,2000 Free Software Foundation, Inc.                   *
31759abf3SPeter Wemm  *                                                                          *
41759abf3SPeter Wemm  * Permission is hereby granted, free of charge, to any person obtaining a  *
51759abf3SPeter Wemm  * copy of this software and associated documentation files (the            *
61759abf3SPeter Wemm  * "Software"), to deal in the Software without restriction, including      *
71759abf3SPeter Wemm  * without limitation the rights to use, copy, modify, merge, publish,      *
81759abf3SPeter Wemm  * distribute, distribute with modifications, sublicense, and/or sell       *
91759abf3SPeter Wemm  * copies of the Software, and to permit persons to whom the Software is    *
101759abf3SPeter Wemm  * furnished to do so, subject to the following conditions:                 *
111759abf3SPeter Wemm  *                                                                          *
121759abf3SPeter Wemm  * The above copyright notice and this permission notice shall be included  *
131759abf3SPeter Wemm  * in all copies or substantial portions of the Software.                   *
141759abf3SPeter Wemm  *                                                                          *
151759abf3SPeter Wemm  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
161759abf3SPeter Wemm  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
171759abf3SPeter Wemm  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
181759abf3SPeter Wemm  * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
191759abf3SPeter Wemm  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
201759abf3SPeter Wemm  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
211759abf3SPeter Wemm  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
221759abf3SPeter Wemm  *                                                                          *
231759abf3SPeter Wemm  * Except as contained in this notice, the name(s) of the above copyright   *
241759abf3SPeter Wemm  * holders shall not be used in advertising or otherwise to promote the     *
251759abf3SPeter Wemm  * sale, use or other dealings in this Software without prior written       *
261759abf3SPeter Wemm  * authorization.                                                           *
271759abf3SPeter Wemm  ****************************************************************************/
281759abf3SPeter Wemm 
291759abf3SPeter Wemm /****************************************************************************
301759abf3SPeter Wemm  *  Author: Thomas E. Dickey <dickey@clark.net> 1999                        *
311759abf3SPeter Wemm  ****************************************************************************/
321759abf3SPeter Wemm 
331759abf3SPeter Wemm #include <curses.priv.h>
341759abf3SPeter Wemm 
357a69bbfbSPeter Wemm MODULE_ID("$Id: version.c,v 1.4 2000/12/10 02:43:28 tom Exp $")
361759abf3SPeter Wemm 
377a69bbfbSPeter Wemm NCURSES_EXPORT(const char *)
381759abf3SPeter Wemm curses_version(void)
391759abf3SPeter Wemm {
401759abf3SPeter Wemm     static char my_version[80];
411759abf3SPeter Wemm 
421759abf3SPeter Wemm     T((T_CALLED("curses_version()")));
4315589c42SPeter Wemm     sprintf(my_version, "ncurses %s.%d",
4415589c42SPeter Wemm 	    NCURSES_VERSION,
451759abf3SPeter Wemm 	    NCURSES_VERSION_PATCH);
461759abf3SPeter Wemm     returnPtr(my_version);
471759abf3SPeter Wemm }
48