Hello there !
Hope somebody could help me.
When I write a program which contains the getch() command, I get a
"segmemtation fault" when I try to run the executable.
For example: after compiling this very simple program(I use such an easy
one because it shows my problem the best way) I try to run it and get a
#include <curses.h> /* Please tell me if
this isn't correct */
printf("Enter a letter: ");
c = getch(); /* If I used
getchar() it'd run without any problems */
printf("%c", c); }
Now I compile it like this:
gcc program.c -lncurses -o
The compiler does its work but when I type the name of the program I get
the seg. fault.
How could I manage that it runs correctly ?
Repost or just write me an e-mail.
Thanks and kind regards,
PS: I use the GNU-C-compiler.