Add C functions to centralize entab processing