Hi everyone,
I only want the name of the declared variable. Everything else is not important to me:
char x[50]; //ANS:x
int y; //ANS:y
char z; //ANS:z
int (*f)(double); //ANS:y
union un u; //ANS:u
struct x y; //ANS:y
struct w w[25]; //ANS:w
struct z z; //ANS:z
double c; //ANS:c
Can somebody give me some shell or C code which extracts the name of a C variable from an arbitrary input? The above are only examples.
Thanks.
I only want the name of the declared variable. Everything else is not important to me:
char x[50]; //ANS:x
int y; //ANS:y
char z; //ANS:z
int (*f)(double); //ANS:y
union un u; //ANS:u
struct x y; //ANS:y
struct w w[25]; //ANS:w
struct z z; //ANS:z
double c; //ANS:c
Can somebody give me some shell or C code which extracts the name of a C variable from an arbitrary input? The above are only examples.
Thanks.