Skip to content

Instantly share code, notes, and snippets.

@nithinkr1shna
Created September 19, 2021 13:00
Show Gist options
  • Select an option

  • Save nithinkr1shna/b1872f076f63d7757dfd6c7d595e2bec to your computer and use it in GitHub Desktop.

Select an option

Save nithinkr1shna/b1872f076f63d7757dfd6c7d595e2bec to your computer and use it in GitHub Desktop.
while (!feof(pyc_pointer)) {
fread(buffer, sizeof(char), 1, pyc_pointer);
hex_str_p += sprintf(hex_str_p, "%02X", (unsigned char) buffer[0]); //converting binary to hex
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment