Skip to content

Instantly share code, notes, and snippets.

@knot126
Created April 26, 2023 08:04
Show Gist options
  • Save knot126/1ffc526103ac2387a5712ba809e49d71 to your computer and use it in GitHub Desktop.
Save knot126/1ffc526103ac2387a5712ba809e49d71 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <string.h>
const char string[] = "Edit: Also, if you are reading this, you are probably wasting your time just decoding some random comment on reddit LMAO.";
int main(int argc, char *argv[]) {
int string_length = strlen(string);
for (int i = 0; i < string_length; i++) {
printf("%x ", string[i]);
}
putchar('\n');
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment