#Strings in C
Hi Shraddan,
To answer your second Q:
Define a struct: struct Lookup {
char *string;
int (*func)(void); /* Pointer to func taking no params and returning
int */ };
Now you lookup table is an array of these, ie struct Lookup Table[]= {
{"String 1", func1},
{"String 2", func2} };
Obviously, you must have some functions like int func1(void);
Steve the G. [BEDFORDSHIRE, UK]