Snap for 7343210 from c6b8df35d274df76f521f4f5889adf2586fce432 to sc-v2-release

Change-Id: I61bf264e26ffd1b9794cfac5141971f8cb153516
diff --git a/METADATA b/METADATA
index ada457a..2603940 100644
--- a/METADATA
+++ b/METADATA
@@ -5,11 +5,11 @@
     type: GIT
     value: "https://github.com/gavinhoward/bc"
   }
-  version: "4.0.0"
+  version: "4.0.1"
   license_type: NOTICE
   last_upgrade_date {
     year: 2021
-    month: 4
-    day: 9
+    month: 5
+    day: 5
   }
 }
diff --git a/NEWS.md b/NEWS.md
index 011cb91..c66e7b1 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,5 +1,10 @@
 # News
 
+## 4.0.1
+
+This is a production release that only adds one thing: flushing output when it
+is printed with a print statement.
+
 ## 4.0.0
 
 This is a production release with many fixes, a new command-line option, and a
diff --git a/README.md b/README.md
index 852c895..f0dcecf 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,10 @@
 
 For more information, see the `dc`'s full manual.
 
+This `bc` also provides `bc`'s math as a library with C bindings, called `bcl`.
+
+For more information, see the full manual for `bcl`.
+
 This `bc` is Free and Open Source Software (FOSS). It is offered under the BSD
 2-clause License. Full license text may be found in the [`LICENSE.md`][4] file.
 
diff --git a/include/version.h b/include/version.h
index 7f33df6..ab4823b 100644
--- a/include/version.h
+++ b/include/version.h
@@ -36,6 +36,6 @@
 #ifndef BC_VERSION_H
 #define BC_VERSION_H
 
-#define VERSION 4.0.0
+#define VERSION 4.0.1
 
 #endif // BC_VERSION_H
diff --git a/src/program.c b/src/program.c
index 8273508..c1e61f7 100644
--- a/src/program.c
+++ b/src/program.c
@@ -2034,6 +2034,7 @@
 			case BC_INST_PRINT_STR:
 			{
 				bc_program_print(p, inst, 0);
+				bc_file_flush(&vm.fout, bc_flush_save);
 				break;
 			}