signal 11 (SIGSEGV)?
signal 11 (SIGSEGV)?
- Subject: signal 11 (SIGSEGV)?
- From: Jonathan <email@hidden>
- Date: Wed, 12 Apr 2006 10:09:21 -0700
- Thread-topic: signal 11 (SIGSEGV)?
Hi--
Here's my code -- and yes :) I didn't copy this but typed every line:
#include <stdio.h>
char key;
int main()
{
puts("Type any key here:");
scanf("%c",key);
printf("The key you pressed was %c.\n",key);
return (0);
}
When run it duly asks for the key. When I enter a key and press return first
I get:
Error from debugger: Executable Path is nil!
Then it waits a bit and then I get:
PickAnyKey has exited due to signal 11 (SIGSEGV).
BTW, on another issue -- this line:
return (0);
Is it correct to write it just as:
return 0;
?
Best,
Jonathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden