From: Juerg Billeter Date: Mon, 26 Nov 2007 23:29:35 +0000 (+0000) Subject: add scanf and fscanf bindings X-Git-Tag: VALA_0_1_6~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=982a8e2d739d915d627eed1f567799df9c3b0f81;p=platform%2Fupstream%2Fvala.git add scanf and fscanf bindings 2007-11-27 Juerg Billeter * vapi/glib-2.0.vapi: add scanf and fscanf bindings svn path=/trunk/; revision=724 --- diff --git a/ChangeLog b/ChangeLog index e8b1f8f..a9b3d53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-27 Jürg Billeter + + * vapi/glib-2.0.vapi: add scanf and fscanf bindings + 2007-11-25 Jürg Billeter * configure.ac: Post-release version bump diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 5384175..2ac035d 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -482,6 +482,8 @@ public class string { public bool has_suffix (string! suffix); [CCode (cname = "g_strdup_printf"), PrintfFormat] public string printf (...); + [CCode (cname = "scanf")] + public int scanf (...); [CCode (cname = "g_strconcat")] public string concat (string string2, ...); [CCode (cname = "g_strndup")] @@ -1757,6 +1759,8 @@ namespace GLib { public weak string gets (string s, int size); [CCode (cname = "feof")] public bool eof (); + [CCode (cname = "fscanf")] + public int scanf (string format, ...); } [CCode (cprefix = "g_file_", cheader_filename = "glib/gstdio.h")]