[glib: 1/3] docs: Improve g_fopen description for Win32



commit 6d3f67dae837e931b07767fdbffcfa1fa4b08999
Author: David King <amigadave amigadave com>
Date:   Fri Feb 17 15:34:26 2012 +0000

    docs: Improve g_fopen description for Win32
    
    Tweaked by Philip Withnall.
    
    Closes: #198

 glib/gstdio.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/glib/gstdio.c b/glib/gstdio.c
index a554b421c..ab281ac3f 100644
--- a/glib/gstdio.c
+++ b/glib/gstdio.c
@@ -1540,6 +1540,11 @@ g_rmdir (const gchar *filename)
  *
  * See your C library manual for more details about fopen().
  *
+ * As close() and fclose() are part of the C library, this implies that it is
+ * currently impossible to close a file if the application C library and the C library
+ * used by GLib are different. Convenience functions like g_file_set_contents()
+ * avoid this problem.
+ *
  * Returns: A FILE* if the file was successfully opened, or %NULL if
  *     an error occurred
  * 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]