fork(4) download
  1. #if __STDC_VERSION__ >= 199901L
  2. #define _XOPEN_SOURCE 600
  3. #else
  4. #define _XOPEN_SOURCE 500
  5. #endif /* __STDC_VERSION__ */
  6. #include<time.h>
  7.  
  8. int main()
  9. {
  10. double time = 0.1;
  11. nanosleep((struct timespec[]) { {time,((time -((time_t)time)) * 1000000000)}},NULL);
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 1672KB
stdin
Standard input is empty
stdout
Standard output is empty