Skip to content

Commit 5d3f1f5

Browse files
committed
remove \r from printf statements
`printf` already adds a `\r` when printing to the console, or writing text files.
1 parent b76733e commit 5d3f1f5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/cpp/structured-exception-handling-c-cpp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ class TestClass
6767
public:
6868
~TestClass()
6969
{
70-
printf("Destroying TestClass!\r\n");
70+
printf("Destroying TestClass!\n");
7171
}
7272
};
7373

7474
__declspec(noinline) void TestCPPEX()
7575
{
7676
#ifdef CPPEX
77-
printf("Throwing C++ exception\r\n");
77+
printf("Throwing C++ exception\n");
7878
throw std::exception("");
7979
#else
80-
printf("Triggering SEH exception\r\n");
80+
printf("Triggering SEH exception\n");
8181
volatile int *pInt = 0x00000000;
8282
*pInt = 20;
8383
#endif
@@ -97,7 +97,7 @@ int main()
9797
}
9898
__except(EXCEPTION_EXECUTE_HANDLER)
9999
{
100-
printf("Executing SEH __except block\r\n");
100+
printf("Executing SEH __except block\n");
101101
}
102102

103103
return 0;

0 commit comments

Comments
 (0)