Michael Stefaniuc <[EMAIL PROTECTED]> writes: > Actually it's not a cast. It's a heuristic that the compiler has to make > to detect a NULL pointer. The best heuristic for this is (char *) 0.
There's no heuristic involved here, the assignment is clearly to a pointer, and 0 is a perfectly valid null pointer, no cast is needed. -- Alexandre Julliard [EMAIL PROTECTED]