Is it possible to use forloop to get the "struct" property names in C? Or would I just make a separate list? (Just the name I'm looking for)
You will need to make a separate list. The C programming language does not have the ability to introspect to list the names of structure properties.
forunable to list members structin C, no. In fact, after compilation, the C program has no concept of member names at all, it just uses the offsets from the struct pointer.
for
struct
Source: https://habr.com/ru/post/1750918/More articles:Mac suitable for python programming? - pythonShould I always use the GL_ARGB format for all textures in OpenGL? - c ++How do you return a pointer to a base class with a virtual function? - c ++What is a strong dosage method? - securityBig time complexity for nested loops - big-oA video chat / conference SDK for .NET that works? - .netreliable server-side dynamic form engine for ASP.NET - asp.netRemove "headheading" from the homepage - Joomla! - joomlaWhat is the difference between a keystore and a private key in the context of signing an application? - software-distributionКак сделать ActionBean мгновенно созданным, но не после того, как я вызову один из обработчиков? - javaAll Articles