• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: signal 11 (SIGSEGV)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >signal 11 (SIGSEGV)? (From: Jonathan <email@hidden>)

  • Prev by Date: signal 11 (SIGSEGV)?
  • Next by Date: Re: signal 11 (SIGSEGV)?
  • Previous by thread: signal 11 (SIGSEGV)?
  • Next by thread: Re: signal 11 (SIGSEGV)?
  • Index(es):
    • Date
    • Thread