qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Remove unused header checks.
2016-08-20, Elliott Sales de Andrade
f2beced1f8c2
Remove unused header checks.
* arpa/nameser_compat.h appears unused.
* sys/time.h should be fine on all systems, according to AC_HEADER_TIME,
but it's not used anyway.
* regex.h is not used.
* sys/utsname.h appears twice.
#include
<ncurses.h>
int
main
()
{
int
ch
;
initscr
();
noecho
();
cbreak
();
refresh
();
WINDOW
*
win
=
newpad
(
20
,
30
);
box
(
win
,
0
,
0
);
prefresh
(
win
,
0
,
0
,
0
,
0
,
19
,
29
);
doupdate
();
while
((
ch
=
getch
()))
{
printw
(
"%d "
,
ch
);
refresh
();
}
endwin
();
return
0
;
}