Created
January 7, 2016 11:17
-
-
Save orotemo/e5a43d92ec1c10c1c838 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void hex_print(byte *buf, int n) { | |
fprintf(stderr, "<<"); | |
for (int i = 0; i < n; i++) | |
{ | |
fprintf(stderr, "16#%02X", buf[i]); | |
if (i < n-1) fprintf(stderr, ","); | |
} | |
fprintf(stderr,">>\r\n"); | |
fflush(stderr); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment