12 stream
= open_memstream (&bp
, &size
);
13 fprintf (stream
, "hello");
15 printf ("buf = %s, size = %Zu\n", bp
, size
);
17 lose
|= strncmp (bp
, "hello", size
);
18 fprintf (stream
, ", world");
20 printf ("buf = %s, size = %Zu\n", bp
, size
);
22 lose
|= strncmp (bp
, "hello, world", 12);
24 puts (lose
? "Test FAILED!" : "Test succeeded.");