struct array 结构数组
A little extra work would also allow tables containing full struct definitions; a little more would ensure that space isn't wasted at the front of the array with useless empty entries.
我们还要实现另外一些任务:让这个表包含完整的结构定义;还要确保这个数组前面没有空项,这样就不会浪费空间。
This structure has the useful property that if you allocate space for (sizeof(struct header) + 10) bytes, you can treat data as being an array of 10 bytes.
这种结构体的有用之处在于,如果您分配 (sizeof(struct header) + 10) 字节的空间,您可以像处理一个 10 字节的数组一样来处理数据。
The POSIX 1003.1 standard defines only one required entry for struct dirent, an array of char named d_name.
POSIX 1003.1标准仅仅为struct dirent定义了一个必需的条目,即char数组d _ name。
应用推荐