* modules/xfreopen (Description): Improve.
* lib/xfreopen.h: Add comments. Make includable from C++.
* lib/xfreopen.c: Update comment.
+2021-06-15 Bruno Haible <bruno@clisp.org>
+
+ xfreopen: Improve module description.
+ * modules/xfreopen (Description): Improve.
+ * lib/xfreopen.h: Add comments. Make includable from C++.
+ * lib/xfreopen.c: Update comment.
+
2021-06-14 Paul Eggert <eggert@cs.ucla.edu>
idx: new printf/scanf length modifier macro
-/* a wrapper for freopen
+/* Open a file, reusing a given stream, with error checking.
Copyright (C) 2008-2021 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
-/* Copyright (C) 2009-2021 Free Software Foundation, Inc.
+/* Open a file, reusing a given stream, with error checking.
+ Copyright (C) 2009-2021 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Opens the file FILENAME with mode MODE, reusing the given stream FP.
+ Upon failure, emits an error message and exits the program. */
void xfreopen (char const *filename, char const *mode, FILE *fp);
+
+#ifdef __cplusplus
+}
+#endif
Description:
-a wrapper for freopen
+Open a file, reusing a given stream, with error checking.
Files:
lib/xfreopen.c