+NCURSES_EXPORT(int)
+NCURSES_SP_NAME(slk_init) (NCURSES_SP_DCLx int format)
+{
+ int code = ERR;
+
+ T((T_CALLED("slk_init(%p,%d)"), SP_PARM, format));
+
+ if (SP_PARM && format >= 0 && format <= 3 && !SP_PARM->slk_format &&
+ SP_PARM->_prescreen) {
+ SP_PARM->slk_format = 1 + format;
+ code = NCURSES_SP_NAME(_nc_ripoffline) (NCURSES_SP_ARGx
+ -SLK_LINES(SP_PARM->slk_format),
+ _nc_slk_initialize);
+ }
+ returnCode(code);
+}
+
+#if NCURSES_SP_FUNCS
+NCURSES_EXPORT(int)