Re: signal 11 (SIGSEGV)?
Re: signal 11 (SIGSEGV)?
- Subject: Re: signal 11 (SIGSEGV)?
- From: Jonathan <email@hidden>
- Date: Wed, 12 Apr 2006 10:12:31 -0700
- Thread-topic: signal 11 (SIGSEGV)?
Ummm... NM.
It was the missing "&" before "key".
Please forward "stupid" greetings to the above address.
Jonathan
on 4/12/06 10:09 AM, Jonathan at rlinsurf @ dhnet . us wrote:
> 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