modified pdos_mex to adhere to ansi c standards.