#include "stdio.h"
#include "stdlib.h"
#include "sys/file.h"
#define TAM_BUF 255
int main(int argc, char *argv[])
{
char buf[TAM_BUF];
int readed;
readed = read(0, buf, TAM_BUF);
while(readed > 0)
{
write(1, buf, readed);
readed = read(0, buf, TAM_BUF);
}
printf("Hello, world!\n");
return EXIT_SUCCESS;
}
No comments:
Post a Comment