struct vsf_sysutil_statbuf
实际上并没有这个结构体的定义
只有一个结构体的声明
实际使用中都是作为返回值和参数
亲自测试过
使用这个结构体的指针(变量不行),在函数内强制转换,运行正常
总结
实质类似于一个空指针,但比空指针类型要求严格点,必须强制转换。
测试例子:
#include<stdio.h>
struct a{
int count;
int size;
};
struct b;
void f(struct b *n){
struct a* c = (struct a*)n;
printf("%d\n",c->count);
printf("%d\n",c->size);
}
int main(){
struct a r={1,2};
struct a *m = &r;
struct b *n = (struct b*)m;
f(n);
return 0;
}