How to check if void pointer points to NULL?
如何检查,如果无效指针指向空?
The way this is set up, the Perl object contains a read-only integer that corresponds to the void pointer returned by newsession().
这样做的方法是,Perl 对象包含一个只读的整数,此整数与函数 newsession() 返回的空指针相对应。
When we start talking to the library about something, we call a function called newsession that returns a void pointer (not an unusual way to organize things).
当我们开始与库交流时,我们调用一个名为 newsession 的函数,它会返回一个空指针(这是组织事情的惯用方法)。
应用推荐