blob: 4d194e0501055bc28b4035c60df59061143f35ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Build don't link:
#include <ctype.h>
#include <iostream.h>
// #include <streambuf.h>
// #include <libio.h>
#include <strstream.h>
#include <string.h>
using namespace std;
extern bool foo2 (ostream &out, istream &in);
bool
foo1 (ostream &out, const char *in)
{
strstreambuf sb (in, (int) strlen (in));
istream fmt (&sb);
return foo2 (out, fmt);
}
|