You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
513 B

/*************
* com_rehash.c
************/
#include "ngspice/ngspice.h"
#include "ngspice/wordlist.h"
#include "com_rehash.h"
#include "ngspice/cpextern.h"
#include "control.h"
#include "parser/unixcom.h"
void
com_rehash(wordlist *wl)
{
char *s;
NG_IGNORE(wl);
if (!cp_dounixcom) {
fprintf(cp_err, "Error: unixcom not set.\n");
return;
}
s = getenv("PATH");
if (s)
cp_rehash(s, TRUE);
else
fprintf(cp_err, "Error: no PATH in environment.\n");
}