fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. const char code[22] = "\x53\x31\xC0\x0F\xA2\x89\x1F\x89\x57\x04\x89\x4F\x08\x5B\x48\x8D\x05\0\0\0\0\xC3";
  5. void (*get_vendor_string)(char(*)[12]) = (void(*)(char(*)[12]))code;
  6.  
  7. int main() {
  8. char s[12];
  9. get_vendor_string(&s);
  10. printf("CPU made by %.12s\n", s);
  11. }
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
CPU made by GenuineIntel