* authorization. *
****************************************************************************/
/*
- * $Id: clip_printw.c,v 1.3 2009/07/17 09:28:52 tom Exp $
+ * $Id: clip_printw.c,v 1.5 2009/10/24 21:02:55 tom Exp $
*
* demonstrate how to use printw without wrapping.
*/
do {
switch (st.ch) {
case '.': /* change from current position */
- wattrset(win, st.attr | COLOR_PAIR(st.pair));
+ (void) wattrset(win, st.attr | COLOR_PAIR(st.pair));
if (st.count > 0) {
need = st.count + 1;
sprintf(fmt, "%%c%%%ds%%c", st.count);
}
if ((buffer = typeMalloc(char, need)) != 0) {
for (j = 0; j < need; ++j) {
- buffer[j] = 'A' + (j % 26);
+ buffer[j] = (char) ('A' + (j % 26));
}
buffer[need - 1] = '\0';
st.status = clip_wprintw(win, fmt, '[', buffer, ']');
ExitProgram(EXIT_SUCCESS);
}
+
#else
int
main(void)