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 betetr. |
||
|
|
|
|
Got it! Thanks a lot again for hpelnig me out! |
||
|
|
|
|
Grade A stuff. I'm unqeustinoably in your debt. |
||
|
|