git-2.22.0/exec-cmd.c
/*
 * Resolves the executable path by using the global variable _wpgmptr.
 *
 * Returns 0 on success, -1 on failure.
 */
Resolves the executable path by using the global variable _wpgmptr.
Returns 0 on success, -1 on failure.
Resolves the executable path by using the global variable _wpgmptr . Returns 0 on success - 1 on failure .
static int git_get_exec_path_wpgmptr(struct strbuf *buf)
{
	int len = wcslen(_wpgmptr) * 3 + 1;
	strbuf_grow(buf, len);
	len = xwcstoutf(buf->buf, _wpgmptr, len);
	if (len < 0)
		return -1;
	buf->len += len;
	return 0;
}
static int git_get_exec_path_wpgmptr ( struct strbuf * buf ) { int len = wcslen ( _wpgmptr ) * 3 + 1 ; strbuf_grow ( buf , len ) ; len = xwcstoutf ( buf -> buf , _wpgmptr , len ) ; if ( len < 0 ) return -1 ; buf -> len += len ; return 0 ; }
Resolves the executable path by using the global variable _wpgmptr.
Resolves the executable path by using the global variable _wpgmptr .