All pastes #673911 Raw Edit

Miscellany

public text v1 · immutable
#673911 ·published 2007-08-28 19:56 UTC
rendered paste body
NCURSES_EXPORT(int)
wrefresh(WINDOW *win)
{
    int code;

    T((T_CALLED("wrefresh(%p)"), win));

    if (win == 0) {
        code = ERR;
    } else if (win == curscr) {


from http://en.wikipedia.org/wiki/Boolean_datatype:

However, any non-zero value represents true in C. So while in other languages, if (foo == TRUE) ... is merely redundant, in C, it is actually incorrect code.