我正在处理嵌入式C.我坚持指针结构....卡住C指针结构
结构如下所示..
/*structure 1*/
ZPS_tsAplApsmeBindingTableType *psAplApsmeAibBindingTable;
/*structure 2*/
typedef struct
{
ZPS_tsAplApsmeBindingTableCache* psAplApsmeBindingTableCache;
ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable;
}ZPS_tsAplApsmeBindingTableType;
/*structure3*/
typedef struct
{
uint64 u64SourceAddress;
ZPS_tsAplApsmeBindingTableEntry* pvAplApsmeBindingTableEntryForSpSrcAddr;
uint32 u32SizeOfBindingTable;
}ZPS_tsAplApsmeBindingTable;
/*structure 4*/
typedef struct
{
ZPS_tuAddress uDstAddress;
uint16 u16ClusterId;
uint8 u8DstAddrMode;
uint8 u8SourceEndpoint;
uint8 u8DestinationEndPoint;
} ZPS_tsAplApsmeBindingTableEntry;
我宣布ZPS_tsAplApsmeBindingTableType *p;
,但我想访问ZPS_tsAplApsmeBindingTableEntry
结构值...我怎么能做到这一点?
谁能告诉我
ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable
和
ZPS_tsAplApsmeBindingTable *psAplApsmeBindingTable;
感谢之差....
我被困在你的命名约定!哇。当结构的阵列是由一个结构指针 ZPS_tsAplApsmeBindingTable * psAplApsmeBindingTable其结构指针指向 – Duck 2012-02-20 18:55:48