X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fbase%2Flib_winch.c;h=765220799a50689851b80164e658f10ad367cb3a;hp=119c731ebe3b92ba9979224c2e2bbe2c82bacc67;hb=c633e5103a29a38532cf1925257b91cea33fd090;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34 diff --git a/ncurses/base/lib_winch.c b/ncurses/base/lib_winch.c index 119c731e..76522079 100644 --- a/ncurses/base/lib_winch.c +++ b/ncurses/base/lib_winch.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998,2000 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 * @@ -39,14 +39,15 @@ #include -MODULE_ID("$Id: lib_winch.c,v 1.1 1998/11/14 22:06:09 tom Exp $") +MODULE_ID("$Id: lib_winch.c,v 1.2 2000/07/29 16:41:44 tom Exp $") -chtype winch(WINDOW *win) +chtype +winch(WINDOW *win) { - T((T_CALLED("winch(%p)"), win)); - if (win != 0) { - returnCode(win->_line[win->_cury].text[win->_curx]); - } else { - returnCode(0); - } + T((T_CALLED("winch(%p)"), win)); + if (win != 0) { + returnChar(win->_line[win->_cury].text[win->_curx]); + } else { + returnChar(0); + } }