struct test
{
int a;
int b;
float c;
}
如何从struct test的b的地址反推struct test的地址?
|
|
如何从 |
||
|
|
|
|
windows ddk提供了个经典的宏:
linux内核也有个同样功能的宏:
这里其实有个小技巧,即 看个例子:
输出:
即 参考: |
|||
|
|
|
|
You've got it in one. Couldn't have put it better. |
||
|
|
|
|
Got it! Thanks a lot again for helpnig me out! |
||
|
|
|
|
Grade A stuff. I'm unquestionably in your debt. |
||
|
|