From ffc76767c23915c789c6c0bf547c477ad85d39ae Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann Date: Mon, 3 Sep 2007 18:59:11 +0000 Subject: add string.to_double 2007-09-03 Mathias Hasselmann * vapi/glib-2.0.vala: add string.to_double svn path=/trunk/; revision=579 --- vapi/glib-2.0.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vapi') diff --git a/vapi/glib-2.0.vala b/vapi/glib-2.0.vala index 2d4a08098..0eacc724b 100644 --- a/vapi/glib-2.0.vala +++ b/vapi/glib-2.0.vala @@ -524,6 +524,8 @@ public class string { [CCode (cname = "atoi")] public int to_int (); + [CCode (cname = "strtod")] + public double to_double (out string endptr = null); [CCode (cname = "strtoul")] public ulong to_ulong (out string endptr = null, int _base = 0); [CCode (cname = "g_ascii_strtoll")] -- cgit v1.2.1