Clist Find question
-
I have a Clist however the type is defined as a structure My question is I would like to match up against a member in the structure is this possible ? there maybe more that one occurence Thanks
It's not clear what you're trying to do. Define "match up against a member in the structure". Maybe share a code sample.
The difficult we do right away... ...the impossible takes slightly longer.
-
It's not clear what you're trying to do. Define "match up against a member in the structure". Maybe share a code sample.
The difficult we do right away... ...the impossible takes slightly longer.
Consider the following structure
struct stdecs { struct vsmdesc stordesc; char \*tcb = " "; struct blkdesc blkdescx; CList freeblock; CList allocblock; };
with the following Clist definition
CList storagediscriptor;
Could I match for an equal against member tcb ? or any other member of the type stdesc thanks
-
Consider the following structure
struct stdecs { struct vsmdesc stordesc; char \*tcb = " "; struct blkdesc blkdescx; CList freeblock; CList allocblock; };
with the following Clist definition
CList storagediscriptor;
Could I match for an equal against member tcb ? or any other member of the type stdesc thanks
Sure, how about:
stdecs anotherinstance;
if (storagediscriptor[4].tcb == anotherinstance.tcb)...
if (storagediscriptor[5].stordesc == anotherinstance.stordesc)...
The difficult we do right away... ...the impossible takes slightly longer.
-
Sure, how about:
stdecs anotherinstance;
if (storagediscriptor[4].tcb == anotherinstance.tcb)...
if (storagediscriptor[5].stordesc == anotherinstance.stordesc)...
The difficult we do right away... ...the impossible takes slightly longer.
-
I would have to loop unitl storagediscriptor.GetNext == NULL inspecting the member which is not too bad thanks
You're welcome!
The difficult we do right away... ...the impossible takes slightly longer.