C- how to read input from stdin until newline character using read()? : <p>Basically I want to use the read() function to read in a typed message from STDIN, but I want to quit the message by typing just the enter key instead of using CTRL + D. What's the best way to do this? </p>
