fork(3) download
  1. #include<time.h>
  2.  
  3. int main()
  4. {
  5. double time = 0.1;
  6. nanosleep((struct timespec[]) { {time,((time -((time_t)time)) * 1000000000)}},NULL);
  7.  
  8. return 0;
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:6: error: implicit declaration of function ‘nanosleep’
prog.c:6: error: array type has incomplete element type
stdout
Standard output is empty