View Single Post
Mentor
10Mar2009,22:32  
xpi0t0s's Avatar
Is it the function itself that core dumps or the "cout << ... astrstr()" part?
Possible cout << NULL won't go down very well; you can solve this by checking the return value before using it.