home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
c_news
/
08
/
printf
/
readme.doc
< prev
next >
Wrap
Text File
|
1988-06-02
|
2KB
|
61 lines
Copyright (c) Microsoft Corp 1984, 1985, 1986, 1987, 1988. All rights reserved.
The files in this archive are for use by owners of Microsoft C Optimizing
Compiler and Microsoft QuickC only. These objects may be distributed subject
to the restrictions specified in the Microsoft License Agreement provided
with the product.
------------------------------------------------------------------------
This file contains replacement object files to correct a problem with
formatted output in the Microsoft C 5.10 runtime. Specificly, printf would
not zero fill floating point numbers when the specified precision is zero.
The cprintf() function also has this problem. This is demonstrated by the
following example.
#include <stdio.h>
main(void)
{
printf("%04.0f\n", 12.34);
}
The current runtime library will output ' 12'. With this update, the
library will output '0012'.
The following is a list of the files in this archive.
README.DOC This file.
UPDATE.BAT DOS batch file to update all libraries.
UPDATE.CMD OS/2 batch file to update all libraries.
OUTPUT.S OUTPUT.OBJ for small model libraries.
OUTPUT.M OUTPUT.OBJ for medium model libraries.
OUTPUT.C OUTPUT.OBJ for compact model libraries.
OUTPUT.L OUTPUT.OBJ for large model libraries.
OUTPUT.CRT OUTPUT.OBJ for CDLLOBJS.LIB
OUTPUT.DLL OUTPUT.OBJ for LLIBCDLL.LIB
OUTPUT.MT OUTPUT.OBJ for LLIBCMT.LIB
CPRINTF.S CPRINTF.OBJ for small model libraries.
CPRINTF.M CPRINTF.OBJ for medium model libraries.
CPRINTF.C CPRINTF.OBJ for compact model libraries.
CPRINTF.L CPRINTF.OBJ for large model libraries.
CPRINTF.CRT CPRINTF.OBJ for CDLLOBJS.LIB
CPRINTF.DLL CPRINTF.OBJ for LLIBCDLL.LIB
CPRINTF.MT CPRINTF.OBJ for LLIBCMT.LIB
To update your libraries, you should place all these files in the same
directory as the libraries and type UPDATE. The process may take a some
time depending on the number of libraries you created during installation.
The update procedure will create a backup of each library with the
file extension .BAK. After you assure yourself that the update completed
without error (for example insufficient disk space), you can delete the
backups. The original combined libraries can always be regenerated using
the SETUP program and the distribution disks.