comparison src/os_riscos.c @ 24:8ff7fd162d3c v7.0016

updated for version 7.0016
author vimboss
date Mon, 13 Sep 2004 20:26:32 +0000
parents 3fc0f57ecb91
children 8f3a526c2fe1
comparison
equal deleted inserted replaced
23:3f44e9abe4ec 24:8ff7fd162d3c
652 652
653 buf = alloc((unsigned)STRLEN(name) + 7); 653 buf = alloc((unsigned)STRLEN(name) + 7);
654 if (buf == NULL) 654 if (buf == NULL)
655 return -1; 655 return -1;
656 sprintf((char *)buf, "which %s", name); 656 sprintf((char *)buf, "which %s", name);
657 p = get_cmd_output(buf, SHELL_SILENT); 657 p = get_cmd_output(buf, NULL, SHELL_SILENT);
658 vim_free(buf); 658 vim_free(buf);
659 if (p == NULL) 659 if (p == NULL)
660 return -1; 660 return -1;
661 /* result can be: "name: Command not found" */ 661 /* result can be: "name: Command not found" */
662 retval = (*p != NUL && strstr((char *)p, "not found") == NULL); 662 retval = (*p != NUL && strstr((char *)p, "not found") == NULL);