Microsoft KB Archive/70364

PRB: ftime Parameter Documented in C 6.0 as tm Should Be timeb ID Number: Q70364

6.00 6.00a 6.00ax | 6.00 6.00a MS-DOS | OS/2 docerr

Summary:

The parameter for the ftime function is documented incorrectly on page 133 of the “Microsoft C Reference” shipped with C versions 6.0, 6.0a, and 6.0ax. Page 61 of the “Microsoft C Run-Time Library Reference” from Microsoft Press also contains the same error. This problem was corrected in C version 7.0.

Both of these books state that the function ftime uses a variable of the type struct tm. The correct structure type is timeb.

The following is the incorrect line from page 133 of the “Microsoft C Reference”:

ftime Puts current system time in variable of type struct tm

This line should read as follows:

ftime Puts current system time in variable of type struct timeb

The C 6.x online Help files contain the correct information for the ftime function. In addition, the actual function descriptions on page 223 of the “Microsoft C Reference” and page 334 of the “Microsoft C Run-Time Library Reference” do specify the correct parameter.

Additional reference words: 6.00 6.00a 6.00ax