/*
* DESCRPTION: standard IO simulate system calls -- read,write;
* DATE:8-23-2006
*/
#include "apue.h"
int main(void)
{
int c;
while((c = getc(stdin)) != EOF)
if(putc(c, stdout) == EOF)
err_sys("output error");
if(ferror(stdin))
err_sys("input error");
return 0;
}