Three problems:
No header files. You need stdio.h for printf and fileno, and io.h for read and setmode (setmode is a Windows only function; on Linux, you would include unistd.h for read).
This:
int main(void);
Is a function declaration, not a definition. Get rid of the ;:
int main(void);
Finally:
while(read(STDIN_FILENO, &c, ') > 0){
You have a ' where there should be a value for the number of bytes to read. This should be 1:
while(read(STDIN_FILENO, &c, 1) > 0){
4
solved How do I complete this C (assembly) character to hexadecimal and binary conversion code? [closed]