minicat.c
minicat.c#include <stdio.h>use: minicat.o < file
int main(void)
{
char buf[BUFSIZ]; int n;
while((n = read(0, buf, BUFSIZ)) > 0)
write(1, buf, n);
return(0);
}
#include <stdio.h>use: minicat.o < file
int main(void)
{
char buf[BUFSIZ]; int n;
while((n = read(0, buf, BUFSIZ)) > 0)
write(1, buf, n);
return(0);
}