Create global.c

extern funcs to manipulate messages