Forum Discussion
Altera_Forum
Honored Contributor
16 years agohow to use getch in niosII
hi i want to ask what is the header file to add for using getch in niosII. I had try to add conio.h but it say that No such file or directory. thx for helping:)
Altera_Forum
Honored Contributor
16 years agogetch() and <conio.h> aren't standard C. You can use getchar() (http://sourceware.org/newlib/libc.html#getchar) instead (that you'll find in <stdio.h>)