/////////////////////////////////////////////////////////////////////////////
// Convenience function to parse a string-based environment variable.
//
// envvar(in): Env variable string
// pval(out):  Ptr to an integer to hold the result.
// Return:     true if env var was seen, else false.
/////////////////////////////////////////////////////////////////////////////
Convenience function to parse a string-based environment variable.

Env variable string
pval(out):  Ptr to an integer to hold the result.
Return:     true if env var was seen, else false.
///////////////////////////////////////////////////////////////////////////// // Convenience function to parse a string - based environment variable . // // envvar ( in ) : Env variable string // pval ( out ) : Ptr to an integer to hold the result . // Return : true if env var was seen else false . /////////////////////////////////////////////////////////////////////////////
func __env_parse_string(envvar string, pval *string) bool {
	var val string
	if val = os.Getenv(envvar); val != "" {
		*pval = val
		return true
	}
	return false
}
func __env_parse_string ( envvar string , pval * string ) bool { var val string if val = os . Getenv ( envvar ) ; val != " " { * pval = val return true } return false }
Convenience function to parse a string-based environment variable.
Convenience function to parse a string - based environment variable .