Is there an option to create a generic structure, where providing a data type creates the corresponding structure?
For example:
typedef struct StbInt {
int value;
struct Stb *left;
struct Stb *right;
} StbInt;
and
typedef struct StbChr {
char value;
struct Stb *left;
struct Stb *right;
} StbChr;
Only the value variable has a different data type. Do I have to create two different structures?