search - Searching a value in an aribitrary structure in C -


if have structure this.

[code]      cogmacframe.header.destaddr = dest;     cogmacframe.header.cogparam = nextchan;     cogmacframe.header.somethingidontknowbutiaminterested = 10;     cogmacframe.header.somethingidontknow = xyz;  [/code] 

here, if don't know fields of structure know 1 of unknown field take value lets 10. need search value of 10 , field value.

can , how ?

i working in warpboard uses c language .the structure macframe header. header received unknown node using own header format don't know fields know 1 of field take particular value , need search value , access field.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -