fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. char str[32];
  7. memcpy(str, "\x01\x00\x02", 3);
  8.  
  9. printf("\n[%x][%x][%x]",str[0],str[1],str[2]);
  10. return 0;
  11. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
[1][0][2]