eb112.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 13 行
C
13 行
// Build don't link: template <class STRUCT, class MEMBER> inline STRUCT *setback(MEMBER *bp, MEMBER STRUCT::*offset){ // The implementation of this function may be platform dependend if(!bp) return 0; // NULL pointers remain NULL union { int i; MEMBER STRUCT::*of; } u; // Switch types. Casting won't+work. u.of = offset; return (STRUCT *) ((int) bp - u.i);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?