|
藍森林 http://www.lslnet.com 2006年6月6日 10:18
如何查找c中特定的數據結構
請問如何查找c中特定的數據結構,比如struct cmsghdr |
如何查找c中特定的數據結構
[root@SHELL /root]# cd /usr/include
[root@SHELL include]# find . -type f -exec grep -l cmsghdr {} \;
./bits/socket.h
[root@SHELL include]# vi ./bits/socket.h
[code]
/* Structure used for storage of ancillary data object information. */
struct cmsghdr
{
size_t cmsg_len; /* Length of data in cmsg_data plus length
of cmsghdr structure. */
int cmsg_level; /* Originating protocol. */
int cmsg_type; /* Protocol specific type. */
#if (!defined __STRICT_ANSI__ && __GNUC__ >;= 2) || __STDC_VERSION__ >;= 199901L
__extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */
#endif
};
"bits/socket.h" 315 lines --73%-- 230,8 74%
[/code] |
如何查找c中特定的數據結構
謝謝謝謝 |
| |