comparison src/file-io.cc @ 637:ae87e84f1be3

[project @ 1994-08-23 21:21:45 by jwe]
author jwe
date Tue, 23 Aug 1994 21:22:05 +0000
parents fae2bd91c027
children 36ba0576bd1b
comparison
equal deleted inserted replaced
636:fae2bd91c027 637:ae87e84f1be3
1390 maybe_save_history (string); 1390 maybe_save_history (string);
1391 } 1391 }
1392 else 1392 else
1393 string = args(1).string_value (); 1393 string = args(1).string_value ();
1394 1394
1395 tmp_file = tmpnam (0); 1395 tmp_file = octave_tmp_file_name ();
1396 1396
1397 fptr = fopen (tmp_file, "w+"); 1397 fptr = fopen (tmp_file, "w+");
1398 if (! fptr) 1398 if (! fptr)
1399 { 1399 {
1400 error ("%s: error opening temporary file", type); 1400 error ("%s: error opening temporary file", type);