FIX: printf Does Not Recognize "\n\r" when Using ConversionLast reviewed: September 18, 1997Article ID: Q117385 |
1.00 1.50 | 1.00
WINDOWS | WINDOWS NTkbprg kbfixlist kbbuglist The information in this article applies to:
SYMPTOMSIf an explicit type-conversion syntax is used for the return value of printf(), printf() does not recognize the escape sequence \n\r in its format string. The following macro prints "<string x>\n\r":
#define PRINT(x) void( printf("%s\n\r", x ) ) RESOLUTIONTo correct the error, use one of the following workarounds:
STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. This problem was corrected in Visual C++ 32-bit Edition, version 2.0.
|
Additional reference words: 1.00 1.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |