fix read_dataset() for windows
This commit is contained in:
parent
d86a422c59
commit
5af2b8eb7a
|
|
@ -301,7 +301,7 @@ static int read_dataset(FILE *fd)
|
||||||
|
|
||||||
while((ptr = fgets(line, sizeof(line), fd)) ) {
|
while((ptr = fgets(line, sizeof(line), fd)) ) {
|
||||||
/* after this line comes the binary blob made of nvars * npoints * sizeof(double) bytes */
|
/* after this line comes the binary blob made of nvars * npoints * sizeof(double) bytes */
|
||||||
if(!strcmp(line, "Values:\n")) { /* this is an ASCII raw file. We don't handle this (yet) */
|
if(!strcmp(line, "Values:\n") || !strcmp(line, "Values:\r\n")) { /* this is an ASCII raw file. We don't handle this (yet) */
|
||||||
free_rawfile(0);
|
free_rawfile(0);
|
||||||
dbg(0, "read_dataset(): ASCII raw files can not be read. "
|
dbg(0, "read_dataset(): ASCII raw files can not be read. "
|
||||||
"Use binary format in ngspice (set filetype=binary)\n");
|
"Use binary format in ngspice (set filetype=binary)\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue