MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / printData

Function printData

src/utilities/fbsvcmgr/fbsvcmgr.cpp:677–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677bool printData(const char*& p)
678{
679 static int binout = -1;
680 if (binout == -1)
681 {
682#ifdef WIN_NT
683 binout = fileno(stdout);
684 _setmode(binout, _O_BINARY);
685#else
686 binout = 1;
687#endif
688 }
689
690 string s;
691 bool rc = getLine(s, p);
692 if (rc)
693 {
694 FB_UNUSED(write(binout, s.c_str(), s.length()));
695 }
696 return rc;
697}
698
699void printString(const char*& p, int num)
700{

Callers 1

printInfoFunction · 0.85

Calls 4

filenoFunction · 0.85
getLineFunction · 0.85
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected