Rather than worry about keeping track of the number of NKIs listed in messages.h, it might be simpler to define MESSAGES thus: #define MESSAGES (sizeof messages / sizeof (char*)) -- "Pity has no place at my table." -- Dr Hannibal Lecter