MCPcopy Create free account
hub / github.com/acl-dev/acl / open_dos

Function open_dos

lib_acl_cpp/src/acl_cpp_init.cpp:51–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49static FILE* dos_fp_ = NULL;
50
51void open_dos(void)
52{
53 if (dos_fp_)
54 return;
55
56 // �� DOS ����
57 AllocConsole();
58
59#if _MSC_VER >= 1500
60 if (freopen_s(&dos_fp_,"CONOUT$", "w+t", stdout) != 0)
61 dos_fp_ = NULL;
62#else
63 dos_fp_ = freopen("CONOUT$", "w+t", stdout);
64#endif
65 if (dos_fp_ == NULL)
66 {
67 printf("open DOS error %s\r\n", last_serror());
68 FreeConsole();
69 }
70}
71
72void close_dos(void)
73{

Callers 2

OnInitDialogMethod · 0.85
mainFunction · 0.85

Calls 1

last_serrorFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…