Change malloc() function to use some helper functions: makeIntType() and makeCharType()