unix 下的C开发手册,还用详细的例程。
源代码在线查看: line.html
line The Single UNIX ® Specification, Version 2 Copyright © 1997 The Open Group NAME line - read one line (LEGACY) SYNOPSIS line DESCRIPTION The line utility copies one line (up to and including a newline) from the standard input and writes it to standard output. It always writes at least a newline. OPTIONS None. OPERANDS None. STDIN The standard input is a text file. INPUT FILES None. ENVIRONMENT VARIABLES None. ASYNCHRONOUS EVENTS Default. STDOUT The standard output is a text file consisting of one line. STDERR Used only for diagnostic messages. OUTPUT FILES None. EXTENDED DESCRIPTION None. EXIT STATUS Exit status is: 0Successful completion. >0End-of-file on input. CONSEQUENCES OF ERRORS Default. APPLICATION USAGE The line utility is often used within command scripts to read from the user's terminal. Applications should migrate to the read utility. EXAMPLES None. FUTURE DIRECTIONS None. SEE ALSO read. UNIX ® is a registered Trademark of The Open Group. Copyright © 1997 The Open Group [ Main Index | XSH | XCU | XBD | XCURSES | XNS ]