Files
2013-11-17 10:08:24 +01:00

10 lines
188 B
C
Executable File

int main(void)
{
char buff[256];
int bytes = 0;
int fd = open("/etc/fstab", O_RDONLY, 0);
while((bytes = read(fd, buff, 256)) > 0) {
write(1, buff, bytes);
}
}