libgnt/libgnt
Clone
Summary
Browse
Changes
Graph
Bump our C standard to C17
14 months ago, Gary Kramlich
1cb23c87a22e
Bump our C standard to C17
Testing Done:
Compiled on Debian unstable. I didn't bother testing the other platforms and we verified this already in /r/2248.
Reviewed at https://reviews.imfreedom.org/r/2251/
#include
<ncurses.h>
int
main
(
void
)
{
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
;
}