]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/base/lib_slklab.c
ncurses 5.6 - patch 20071222
[ncurses.git] / ncurses / base / lib_slklab.c
index 03039ad696cae1c46a8a95308a0eeb6e1105ee2f..42bb4ac1425ddeb616ffe49403c45895e934fdc3 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
 /****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1998-2000,2003 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            *
  *                                                                          *
  * 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>
 
  */
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_slklab.c,v 1.4 1998/02/11 12:13:54 tom Exp $")
+MODULE_ID("$Id: lib_slklab.c,v 1.7 2003/03/29 22:53:48 tom Exp $")
 
 
-char*
+NCURSES_EXPORT(char *)
 slk_label(int n)
 {
 slk_label(int n)
 {
-       T((T_CALLED("slk_label(%d)"), n));
+    T((T_CALLED("slk_label(%d)"), n));
 
 
-       if (SP == NULL || SP->_slk == NULL || n < 1 || n > SP->_slk->labcnt)
-               returnPtr(0);
-       returnPtr(SP->_slk->ent[n-1].text);
+    if (SP == NULL || SP->_slk == NULL || n < 1 || n > SP->_slk->labcnt)
+       returnPtr(0);
+    returnPtr(SP->_slk->ent[n - 1].ent_text);
 }
 }