fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6. char* buf = malloc(1);
  7. int code = 100;
  8.  
  9. const char ch = (char) code;
  10. memcpy(buf, &ch, 1);
  11.  
  12. putchar(*buf);
  13. }
  14.  
Success #stdin #stdout 0s 4492KB
stdin
Standard input is empty
stdout
d