project_files/hwc/rtl/fileio.c
branch0.9.25
changeset 14423 a32b967f1341
parent 11682 2c21bc80c95d
child 14913 68e1783762bc
--- a/project_files/hwc/rtl/fileio.c	Thu Dec 13 11:03:15 2018 -0500
+++ b/project_files/hwc/rtl/fileio.c	Thu Dec 13 12:12:13 2018 -0500
@@ -186,7 +186,8 @@
  */
 void fpcrtl_blockWrite__vars(File f, const void *buf, Integer count,
         Integer *result) {
-    assert(0);
+    assert(f->record_len > 0);
+    *result = fwrite(buf, f->record_len, count, f->fp);
 }
 
 bool fpcrtl_directoryExists(string255 dir) {