2 #include <readline/readline.h>
8 main(int argc
, char ** argv
){
13 fd
=open(argv
[1],O_RDONLY
);
25 while(read (fd
, &akt
,1)){
27 sprintf(buffer
,"Byte No.:%6i DEC:%03i HEX:%02x OCT:%03o Press enter -->",byte
++,akt
,akt
,akt
);
32 fprintf(stderr
,"Byte No.:%6i DEC:%03i HEX:%02x OCT:%03o\n",byte
++,akt
,akt
,akt
);