print_env function in printtyp