[vala] glib vapi: fgets() can return NULL



commit f3ba2251e4bdfc27c533b6455c950eec80ba3fdd
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Jul 21 13:48:02 2011 +0200

    glib vapi: fgets() can return NULL

 vapi/glib-2.0.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 34de1a4..5140ae0 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3031,7 +3031,7 @@ namespace GLib {
 		[CCode (cname = "ungetc", instance_pos = -1)]
 		public int ungetc (int c);
 		[CCode (cname = "fgets", instance_pos = -1)]
-		public unowned string gets (char[] s);
+		public unowned string? gets (char[] s);
 		[CCode (cname = "feof")]
 		public bool eof ();
 		[CCode (cname = "fscanf"), ScanfFormat]



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