fork(1) download
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4.  
  5. int main(void)
  6. {
  7. time_t mytime;
  8. mytime = time(NULL);
  9. printf(ctime(&mytime));
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 2300KB
stdin
Standard input is empty
stdout
Sun Oct 16 13:47:54 2016