This isn't the same... The original code did MCS_unsetenv(<chars of name from 2nd onwards>) - the new code just uses name.