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