MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / CheckPrint

Method CheckPrint

source/ParallelPrinter.cpp:56–71  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

54
55//===========================================================================
56bool ParallelPrinterCard::CheckPrint(void)
57{
58 m_inactivity = 0;
59 if (m_file == NULL)
60 {
61 //char filepath[MAX_PATH * 2];
62 //strncpy(filepath, g_sProgramDir, MAX_PATH);
63 //_tcsncat(filepath, "Printer.txt", MAX_PATH);
64 //file = fopen(filepath, "wb");
65 if (m_bPrinterAppend )
66 m_file = fopen(ParallelPrinterCard::GetFilename().c_str(), "ab");
67 else
68 m_file = fopen(ParallelPrinterCard::GetFilename().c_str(), "wb");
69 }
70 return (m_file != NULL);
71}
72
73//===========================================================================
74void ParallelPrinterCard::ClosePrint(void)

Callers 2

IOReadMethod · 0.80
IOWriteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected