[vala] posix: Add atoi/atol/atoll/strlen bindings
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] posix: Add atoi/atol/atoll/strlen bindings
- Date: Mon, 12 Oct 2009 21:21:09 +0000 (UTC)
commit ccd85eec10860b71370f0eb01285e003472d11d9
Author: pancake <pancake youterm com>
Date: Mon Oct 12 23:20:45 2009 +0200
posix: Add atoi/atol/atoll/strlen bindings
vapi/posix.vapi | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 33c9aca..462a39d 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -137,6 +137,14 @@ public struct time_t {
[Immutable]
[CCode (cname = "char", const_cname = "const char", copy_function = "strdup", free_function = "free", cheader_filename = "stdlib.h,string.h")]
public class string {
+ [CCode (cname="atoi")]
+ public int to_int();
+ [CCode (cname="atol")]
+ public long to_long();
+ [CCode (cname="atoll")]
+ public int64 to_int64();
+ [CCode (cname="strlen")]
+ public int len();
}
[CCode (cname="printf", cheader_filename = "stdio.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]