Re: Bus Error with getch?
Re: Bus Error with getch?
- Subject: Re: Bus Error with getch?
- From: "R. Matthew Emerson" <email@hidden>
- Date: Sat, 2 Dec 2006 00:02:05 -0500
On Dec 1, 2006, at 11:49 PM, Andre-John Mas wrote:
#include <curses.h>
int main ( int argc, char **argv )
{
getch();
return 0;
}
and compiling with -Wall:
cc getch2.c -Wall -lcurses
gives me no warnings and yet it still crashes. Commenting out getch
() the program no longer crashes.
You have to call initscr() before you can call other curses functions.
You might want to review ncurses(3).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden