rangersly b462e74945 MERGE: fix
ADD:
        ./program/c_cpp/coding-style.md
        ./linux/command -> timeshift
    FIX:
        ./linux/arch/auto.sh
        ./linux/config/.bashrc
2025-05-31 09:16:27 +08:00

3 lines
139 B
C

#define offsetof(type, struct_name) (size_t)&(((struct type*)0)->struct_name)
// 计算结构体成员相对结构体首地址的偏移度