C Tricks
文章平均质量分 77
michaelrun
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
offsetof
#include #include struct foobar{ unsigned int foo; char bar; char boo; }; int main(int argc, char** argv){ struct foobar tmp; printf("address of &tmp is= %p\n\n", &tmp); printf("address of原创 2014-12-25 13:18:53 · 492 阅读 · 0 评论 -
What is the purpose of using do {...} while (0) in macros?
The do/while(0) pattern seen in many if not most macros in the Linux kernel and elsewhere has a specific purpose: It is the only construct in C that lets you define macros that always work the same转载 2014-12-25 12:47:07 · 833 阅读 · 0 评论 -
GDB - Debugging stripped binaries
A few days ago I had a discussion with a colleague on how to debug a stripped binary on linux with GDB. Yesterday I also read an article from an ex-colleague at EPITA on debugging with the dmesg转载 2015-04-16 17:10:25 · 1665 阅读 · 0 评论
分享