Level 2 C Mex S Functions