Bug#485135: To fail or misbehave

2008-07-19 Thread Eduard Bloch
#include hallo.h * Bastian Blank [Fri, Jul 18 2008, 03:37:39PM]: But if you don't check it and rely on the function to do what it has to do (i.e. write the result into the buffer in the argument) then you silently get a buffer with undefined data back (most likely unchanged). No. You

Bug#485135: To fail or misbehave

2008-07-18 Thread Eduard Bloch
Please explain. In C++ there is no implicit conversion between int and char *. Exactly. So if you check the return value then the compiler will fail (like in the test case above) and you are lucky to notice the problem. But if you don't check it and rely on the function to do what it has to

Bug#485135: To fail or misbehave

2008-07-18 Thread Bastian Blank
On Fri, Jul 18, 2008 at 02:57:58PM +0200, Eduard Bloch wrote: Please explain. In C++ there is no implicit conversion between int and char *. Exactly. So if you check the return value then the compiler will fail (like in the test case above) and you are lucky to notice the problem. So it