MCPcopy Index your code
hub / github.com/git/git / git_get_exec_path_zos

Function git_get_exec_path_zos

exec-cmd.c:159–168  ·  view source on GitHub ↗

* Resolves the executable path from current program's directory and name. * * Returns 0 on success, -1 on failure. */

Source from the content-addressed store, hash-verified

157 * Returns 0 on success, -1 on failure.
158 */
159static int git_get_exec_path_zos(struct strbuf *buf)
160{
161 char *dir = __getprogramdir();
162 char *exe = getprogname();
163 if (dir && exe) {
164 strbuf_addf(buf, "%s/%s", dir, exe);
165 return 0;
166 }
167 return -1;
168}
169
170#endif /* HAVE_ZOS_GET_EXECUTABLE_PATH */
171

Callers 1

exec-cmd.cFile · 0.85

Calls 1

strbuf_addfFunction · 0.85

Tested by

no test coverage detected