Having two functions being the first:
void print_bytes (const void * end_byte, int n){
int k;
k = end_byte;
converte_binario(k);
}
Converting binary is a bit big so I'll explain, basically it converts an integer to binary. I am not able to compile the code, as I do not know how to pass K as a parameter to the function convert_binary. Already tried:
k = *end_byte;
k = (int)end_byte;
k = (int*)end_byte;
And all give error, I would like to know how to pass K or even end_byte as a parameter to the function convert_binary.
PS: Here is the "prototype" of the function convert_binary.
void converte_binario (int n);