next up previous
Next: Example: MAL I/O Up: Ultrix System Procedures Previous: write(2)

Example: C I/O

The following C language program uses the Unix system procedures read() and write() to prompt for keyboard input and echo the input until a D is typed.

The program is stored in the file test.c and is compiled using the cc command to produce an executable program in the file a.out.




CS301 Class Account
Thu Dec 12 23:09:15 AST 1996