Hex.c 334 B

123456789101112
  1. #include "pal.h"
  2. #include "pal_debug.h"
  3. #include "api.h"
  4. #include "hex.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. }