• 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: c question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c question


  • Subject: Re: c question
  • From: "Justin C. Walker" <email@hidden>
  • Date: Wed, 29 Mar 2006 17:07:44 -0800


On Mar 29, 2006, at 16:34 , Michael wrote:


On Mar 29, 2006, at 4:21 PM, Justin C. Walker wrote:


On Mar 29, 2006, at 16:05 , Michael wrote:

double i;

for ( i=0; getchar() != EOF; ++i);

I really lost now...the example is straight out of K&R.....is this not something unique to Xcode?

Well, it took me a minute to realize I was thinking of a language that isn't C :-}


Your example code is correct, and, at least for me, works as expected (when run from a Terminal window).

This is probably (as suggested earlier in the thread) an issue with the way Xcode handles psuedo-ttys used during run/debug operations.

Sorry for the mis-direction.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >c question (From: Michael <email@hidden>)
 >Re: c question (From: "Justin C. Walker" <email@hidden>)
 >Re: c question (From: Michael <email@hidden>)

  • Prev by Date: Re: c question & buffer
  • Next by Date: Re: fnfErr for resource files
  • Previous by thread: Re: c question & buffer
  • Next by thread: Re: c question
  • Index(es):
    • Date
    • Thread