Browse Source

fopen_with_path enable path search (directory of recent inputs or

NGSPICE_INPUT_DIR)
pre-master-46
Holger Vogt 3 years ago
parent
commit
dc5291fa91
  1. 2
      src/xspice/icm/analog/xfer/cfunc.mod

2
src/xspice/icm/analog/xfer/cfunc.mod

@ -45,7 +45,7 @@ static double *read_file(const char *fn, int span, int offset,
double vals[9]; double vals[9];
char buff[1024]; char buff[1024];
fp = fopen(fn, "r");
fp = fopen_with_path(fn, "r");
if (fp == NULL) { if (fp == NULL) {
cm_message_printf("Can not open file %s: %s", fn, strerror(errno)); cm_message_printf("Can not open file %s: %s", fn, strerror(errno));
return NULL; return NULL;

Loading…
Cancel
Save