"Austad, Jay" <austad at marketwatch.com> writes:

> So, how would I modify those two lines of code to allow me to do something
> like:
> echo 3 | ./bitshift

./bitshift ` echo 3 `

> I've never been able to figure out how to make a C program accept STDIN.  Of
> course, I haven't spent a whole lot of time looking either.

Standard library calls relevant to that include:
    [f]getc
    [f]gets
    [f]scanf (hard to use, behaves strangely)
-- 
David Dyer-Bennet      /      Welcome to the future!      /      dd-b at dd-b.net
SF: http://www.dd-b.net/dd-b/          Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/