fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. struct kernel
  4. {
  5. int (*Start)(void);
  6. }*Kernel;
  7.  
  8. int Start(void)
  9. {
  10. printf("50","%i");
  11. }
  12.  
  13. int main(int argc, char **argv)
  14. {
  15. Kernel=malloc(sizeof(*Kernel));
  16. Kernel->Start=&Start;
  17. Kernel->Start();
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0.01s 1852KB
stdin
Standard input is empty
stdout
50