Standard Input in Project Builder?
Standard Input in Project Builder?
- Subject: Standard Input in Project Builder?
- From: Matt Ridley <email@hidden>
- Date: Mon, 30 Apr 2001 23:38:02 +0100
Hi all,
This isn't strictly a Cocoa question, but it relates to Project
Builder. Apologies if this question is inappropriate here.
I haven't programmed in C for a few years, and have been
re-acquainting myself with it in preparation for getting into
Cocoa. For simplicity's sake, I've been using the exercises in
K&R (2nd edition). These are just plain C programs, #including
stdio.h.
Currently, I'm writing the C programs in Project Builder (based
on the Standard Tool template), then going to the shell to cc
them and run them via ./a.out. That all works quite well.
I notice that, if I instead compile and run within Project
Builder itself, the "Run" pane at the top-right of the project
window serves as the Standard Output. My question is: can it
also serve as the Standard Input, thus saving me having to use
Terminal? I can't seem to get it to accept input there (which
I'm reading with basic functions like getchar()).
Any thoughts would be much appreciated. Again, sorry if this
isn't the right forum for this.
Best,
-Matt
--
Matt Ridley
<
http://www.mattridley.com/>