fork(1) download
  1. #include <stdio.h>
  2. #include <time.h>
  3. #include <string.h>
  4.  
  5. int main(void) {
  6. struct tm tm;
  7. char out[256];
  8.  
  9. memset(&tm, 0, sizeof(struct tm));
  10. tm.tm_mon = 1;
  11. tm.tm_mday = 0;
  12. strftime(out, 256, "%d-%m-%Y", &tm);
  13. printf("%s", out);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
00-02-1900