Check pointer passed to function for validity, also non NULL case

前端 未结 0 1067
囚心锁ツ
囚心锁ツ 2020-11-21 06:49

I wonder if there is a way to check a pointer\'s validity besides the common assert(NULL != ptr). I tried the following to intentionally provoke an "access

相关标签:
回答
  • 消灭零回复
提交回复
热议问题