藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 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中特定的數據結構

謝謝謝謝



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com