Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

looping through properties in struct - C

Can I use a forloop to get the property names of a "struct" in C? Or would I just have make a separate list? (Just the name I am looking for)

like image 435
Jay Avatar asked Dec 03 '25 00:12

Jay


1 Answers

You'll have to make a separate list. The C programming language doesn't have any introspection capabilities that would let you enumerate the property names of a struct.

like image 67
dmazzoni Avatar answered Dec 05 '25 13:12

dmazzoni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!