Hex.c 335 B

12345678910111213
  1. #include "hex.h"
  2. #include "api.h"
  3. #include "pal.h"
  4. #include "pal_debug.h"
  5. int main() {
  6. char x[] = {0xde, 0xad, 0xbe, 0xef};
  7. char y[] = {0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd};
  8. pal_printf("Hex test 1 is %s\n", ALLOCA_BYTES2HEXSTR(x));
  9. pal_printf("Hex test 2 is %s\n", ALLOCA_BYTES2HEXSTR(y));
  10. return 0;
  11. }