MCPcopy Create free account
hub / github.com/Singular/Singular / omFindExec

Function omFindExec

resources/omFindExec.c:260–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258/* for windows, serch first for .exe */
259char * _omFindExec (const char *name, char* exec);
260char* omFindExec(const char *name, char* exec)
261{
262
263 if (strstr(name, ".exe") == NULL)
264 {
265 char buf[MAXPATHLEN];
266 char* ret;
267 strcpy(buf, name);
268 strcat(buf, ".exe");
269 ret = _omFindExec(buf, exec);
270 if (ret != NULL) return ret;
271 }
272 return _omFindExec(name, exec);
273}
274#else
275#define _omFindExec omFindExec
276#endif

Callers 4

feInitResourceFunction · 0.85
feGetExpandedExecutableFunction · 0.85
jjSYSTEMFunction · 0.85
heGenInitFunction · 0.85

Calls 1

_omFindExecFunction · 0.85

Tested by

no test coverage detected