|
|
|
@ -75,7 +75,7 @@ rs ( SPICE_DSTRINGPTR dstr_p) |
|
|
|
spice_dstring_reinit(dstr_p) ; |
|
|
|
do |
|
|
|
{ |
|
|
|
c = fgetc (stdin); |
|
|
|
c = (char) fgetc (stdin); |
|
|
|
cadd (dstr_p, c); |
|
|
|
} |
|
|
|
while (!((c == '\r') || (c == '\n'))); |
|
|
|
@ -592,7 +592,7 @@ freadstr (FILE * f, SPICE_DSTRINGPTR dstr_p) |
|
|
|
spice_dstring_reinit(dstr_p) ; |
|
|
|
do |
|
|
|
{ |
|
|
|
c = fgetc (f); /* tab is the only control char accepted */ |
|
|
|
c = (char) fgetc (f); /* tab is the only control char accepted */ |
|
|
|
if (((c >= ' ') || (c < 0) || (c == '\t'))) |
|
|
|
{ |
|
|
|
str_load[0] = c; |
|
|
|
|