This commit is contained in:
2026-03-04 10:50:42 +01:00
parent 79c0839aa1
commit 8099da0770

View File

@@ -22,15 +22,16 @@ int main(int argc, char *argv[])
fd_in = open(argv[1],O_RDONLY);
fd_out = open(argv[2],O_WRONLY|O_TRUNC|O_CREAT,0600);
w = (unsigned char)strtol(argv[3],NULL,0);
f = ; // TODO
while(1){
ssize_t nb = read(fd_in,&buf,1);
if (nb <=0)
break;
buf ^= w;
write(fd_out,&buf,1);
w=next(w,f);
// TODO
}
return 0;
}