Skip to content

Instantly share code, notes, and snippets.

@Shikugawa
Created November 18, 2020 14:55
Show Gist options
  • Save Shikugawa/9a03f9cf1c7f7a014d6a105fad97a2b7 to your computer and use it in GitHub Desktop.
Save Shikugawa/9a03f9cf1c7f7a014d6a105fad97a2b7 to your computer and use it in GitHub Desktop.
#include <iostream>
int main() {
int a = 0;
int l = 1;
printf("%i | ", l);
for (auto s : cs->value.elem) {
printf("0x%.2x ", s);
if (a == 7) {
std::cout << std::endl;
a = 0;
++l;
printf("%i | ", l);
} else {
++a;
}
}
std::cout << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment