fork(1) download
  1. #include <stdio.h>
  2. #include <unistd.h>
  3.  
  4. int main(void)
  5. {
  6.  
  7. printf("printf1\n");
  8. write(1, "1 should be after printf\n", 25);
  9.  
  10. printf("printf2\n");
  11. write(1, "2 should be after printf\n", 25);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
1 should be after printf
2 should be after printf
printf1
printf2