> The first std::cout with a Null pointer seem to "close" the output
> channel. No more output reaches the console terminal window.
> However, printf() still works. printf() with %s and a Null pointer
> writes "(null)" to stdout, and I saw similar output on Linux.
>
> When I added a printf() to the callback(s), the printf() worked,
> although the cout didn't. That explained why the callbacks seemed
> "not to work" for the OP.
>
> Does anybody know if this is defined behavior of std::cout ? Or
> is it a bug? Maybe Windows only?
>
> Albrecht

AFAIK, the behavior of both std::cout << (char*)0
and printf("%s", NULL) are undefined by C++/C. As
always, an implementation can provide a definition
if it chooses to do so, which seems to have been
done for printf by the compiler(s) in question.

Best,
Stan


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to