标签: c
我们必须在struct stat的基址上添加什么号才能在fstat系统调用中找到st_nlink的偏移量?
答案 0 :(得分:1)
使用offsetof():
offsetof()
offsetof(struct stat, st_nlink)