Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by kkl ( 17 years ago )
#include<stdio.h>
#include<fcntl.h>
#include<unistd.h>
int main(int argc, char* argv[])
{
int plik=open(argv[1], O_RDWR|O_CREAT);
int plik2=open(argv[2], O_RDWR|O_CREAT);
char *l;
while(read(3, &l, 1)!=0)
{
write(4, l, 1);
lseek(3, 1, SEEK_CUR);
};
close(plik);
close(plik2);
return 0;
}
Revise this Paste