-/* Write out the not yet written buffered contents of the stream FP, and then
- test whether some error occurred on the stream FP. FP must be a stream
- opened for writing.
- Return 0 if no error occurred. In this case it can be assumed that
- fclose (fp) will succeed.
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Write out the not yet written buffered contents of the stream FP, close
+ the stream FP, and test whether some error occurred on the stream FP.
+ FP must be a stream opened for writing.
+ Return 0 if no error occurred and fclose (fp) succeeded.