Commit e8c02130 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

bind sscanf instead of scanf, add memcpy binding

2007-11-27  Juerg Billeter  <j@bitron.ch>

	* vapi/glib-2.0.vapi: bind sscanf instead of scanf, add memcpy binding

svn path=/trunk/; revision=725
parent 982a8e2d
2007-11-27 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: bind sscanf instead of scanf, add memcpy binding
2007-11-27 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add scanf and fscanf bindings
......
......@@ -482,7 +482,7 @@ public class string {
public bool has_suffix (string! suffix);
[CCode (cname = "g_strdup_printf"), PrintfFormat]
public string printf (...);
[CCode (cname = "scanf")]
[CCode (cname = "sscanf")]
public int scanf (...);
[CCode (cname = "g_strconcat")]
public string concat (string string2, ...);
......@@ -1818,6 +1818,9 @@ namespace GLib {
[CCode (cname = "memcmp")]
[NoArrayLength ()]
public static int cmp (char[] s1, char[] s2, long n);
[CCode (cname = "memcpy")]
[NoArrayLength ()]
public static weak char[] copy (char[] dest, char[] src, long n);
}
[CCode (cname = "stdin", cheader_filename = "stdio.h")]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment