fork(1) download
  1. #include <stdio.h>
  2. #include <stddef.h>
  3.  
  4. void rtm_guard(void) {
  5. /*
  6.   Don't even try to MS VC that stuff, zerobuffy 4eyes.
  7.   */
  8. unsigned char buf0[0];
  9. unsigned a = 0xF001BA11;
  10. unsigned b = 0xF001BA11;
  11. unsigned c = 0x55550000;
  12. unsigned d = 0xF001BA11;
  13. unsigned e = 0xF001BA11;
  14. unsigned char buf1[0];
  15. ptrdiff_t diff = buf0 - buf1;
  16.  
  17. printf("%d\n", diff);
  18. }
  19.  
  20. int main(void) {
  21. rtm_guard();
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
-1