Oralloy,
My function receive as parameter the name of the structure (with specific instantiation). I just wanted to compare the structure name to do specific tasks.
That why I needed to convert the structure name into a string, to make this comparison.
But actually, I found another way to do that. Instead of comparing and then doing specific tasks and configurations, I used, another structure that includes configurations...
User Profile
Collapse
Profile Sidebar
Collapse
Carrow
Last Activity: Aug 26 '13, 10:47 AM
Joined: May 30 '13
Location:
-
The four first letters indicate which configuration should I point into, what come after indicate other specifications for my function.
The problem with my code is that I'm not free to use whatever I want, and juste to make it works...
I found a way to avoid the use of structure name conversion into a string...But, I'm still interesting to know how to do that...
Thanks again for your answers :-)Leave a comment:
-
Hi everyone,
Thanks a lot for all your answers.
Actually, I'm working on a function that receive as parameter a structure. Then, I need to compare the 4 first letters of the struct parsed name, that why I need to convert a struct name into string.
The structures I'm using, contain a lot of members (unsigned long, pointers...), Do you think that the only way is to convert each member?
CarrowLeave a comment:
-
How to convert a structure name into a string and vice versa?
Hi,
I need to convert a tsructure name into a string and vice versa. I don't really know how to do that in c.
Could anyone help me for that?
Thanks in advance,
No activity results to display
Show More
Leave a comment: