Debian Codegraph @

yo/concrete/streambuf/fdstreambuf/fdin2cout.cc

raw
1 #include "fdstreambuf.h"
2 #include <string>
3 #include <iostream>
4 #include <istream>
5
6 using namespace std;
7
8 // Calls uflow() repeatedly
9
10 int main(int argc)
11 {
12 fdstreambuf
13 fds(0, ios::in);
14 istream
15 is(&fds);
16
17 cout << "START\n";
18
19 char
20 c;
21
22 while (is.get(c))
23 cout << "GOT " << c << '\n';
24
25 cout << "Using fds(0)\n";
26 }