io.mdl 421 B

123456789101112131415
  1. testfile = fopen(basename & ".dat", "w")
  2. io_a = 9*10*479
  3. io_b = "world"
  4. printf("%.0f, %s\n", io_a, io_b)
  5. fprintf(testfile, "%.0f, %s\n", io_a, io_b)
  6. sprintf(io_c, "%.0f, %s", io_a, io_b)
  7. printf("Message should have been \"%s\"\n", io_c)
  8. fprintf(testfile, "Message should have been \"%s\"\n", io_c)
  9. print_time("Current day of the week is %A\n")
  10. fprint_time(testfile, "Current day of the week is %A\n")
  11. fclose(testfile)