Hi,
I want to access ** pointer from pointer to structure. Pls guide me in the code given below:
sturct m
{
int i;
struct n ** pCurrLine; // Ram pointer
struct m *prev;
struct m *nxt;
};
struct n
{
int x[10];
struct n *pre;
struct n *nxt;
};
*pcurrline = &pLine_cur_p tr;
struct n *pLine_cur_ptr;
pLine_cur_ptr = &cur_Line;
struct m *mCurr;
Now if I have to access pCurrLine then how should I proceed.
I tried :
mCurr->pCurrLine = mCurr->pCurrLine->pre ; // error
mCurr = mCurr->pre; /// Is right
pls help
Thanks,
I want to access ** pointer from pointer to structure. Pls guide me in the code given below:
sturct m
{
int i;
struct n ** pCurrLine; // Ram pointer
struct m *prev;
struct m *nxt;
};
struct n
{
int x[10];
struct n *pre;
struct n *nxt;
};
*pcurrline = &pLine_cur_p tr;
struct n *pLine_cur_ptr;
pLine_cur_ptr = &cur_Line;
struct m *mCurr;
Now if I have to access pCurrLine then how should I proceed.
I tried :
mCurr->pCurrLine = mCurr->pCurrLine->pre ; // error
mCurr = mCurr->pre; /// Is right
pls help
Thanks,
Comment