This has to do with modular decomposition. The code I gave was in the c file. This one below is in the h.file.
Code:typedef struct { int id; char code; }Key;
This has to do with modular decomposition. The code I gave was in the c file. This one below is in the h.file.
Code:typedef struct { int id; char code; }Key;
So now you are making a pointer from an integer without a cast, because code is a single character and cannot be used in a string context.