| 675 | } |
| 676 | |
| 677 | bool 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 | |
| 699 | void printString(const char*& p, int num) |
| 700 | { |