]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/version.c
ncurses 6.1 - patch 20190810
[ncurses.git] / ncurses / base / version.c
index a2fe4d86d650c54bf25004d90ded65fe364cc41b..ef83967d46b3a2950f757bb1cd415fc3a876f099 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1999 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1999-2004,2005 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            *
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: version.c,v 1.2 1999/12/04 21:27:23 tom Exp $")
+MODULE_ID("$Id: version.c,v 1.6 2005/01/02 01:23:54 tom Exp $")
 
-const char *
+NCURSES_EXPORT(const char *)
 curses_version(void)
 {
-    static char my_version[80];
-
     T((T_CALLED("curses_version()")));
-    sprintf(my_version, "ncurses %s.%d",
-       NCURSES_VERSION,
-       NCURSES_VERSION_PATCH);
-    returnPtr(my_version);
+    returnCPtr("ncurses " NCURSES_VERSION_STRING);
 }