src/evalfunc.c
int
non_zero_arg(typval_T *argvars)
{
    return ((argvars[0].v_type == VAR_NUMBER
		&& argvars[0].vval.v_number != 0)
	    || (argvars[0].v_type == VAR_BOOL
		&& argvars[0].vval.v_number == VVAL_TRUE)
	    || (argvars[0].v_type == VAR_STRING
		&& argvars[0].vval.v_string != NULL
		&& *argvars[0].vval.v_string != NUL));
}
/*
 * Return TRUE for a non-zero Number and a non-empty String.
 */
Return TRUE for a non-zero Number and a non-empty String.
Return TRUE for a non - zero Number and a non - empty String .
int
non_zero_arg(typval_T *argvars)
{
    return ((argvars[0].v_type == VAR_NUMBER
		&& argvars[0].vval.v_number != 0)
	    || (argvars[0].v_type == VAR_BOOL
		&& argvars[0].vval.v_number == VVAL_TRUE)
	    || (argvars[0].v_type == VAR_STRING
		&& argvars[0].vval.v_string != NULL
		&& *argvars[0].vval.v_string != NUL));
}
int non_zero_arg ( typval_T * argvars ) { return ( ( argvars [ 0 ] . v_type == VAR_NUMBER && argvars [ 0 ] . vval . v_number != 0 ) || ( argvars [ 0 ] . v_type == VAR_BOOL && argvars [ 0 ] . vval . v_number == VVAL_TRUE ) || ( argvars [ 0 ] . v_type == VAR_STRING && argvars [ 0 ] . vval . v_string != NULL && * argvars [ 0 ] . vval . v_string != NUL ) ) ; }
Return TRUE for a non-zero Number and a non-empty String.
Return TRUE for a non - zero Number and a non - empty String .