struct MessageBuffer
{
int msgType; union { char *name; int nameID; };
That finally convinced me getting data using functions (accessors, getters, setters) is a good thing, even in C :) Just all that unnecesary if's are so annoing and killing performance...