summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 12 insertions, 4 deletions
diff --git a/README.md b/README.md
index 8ae81b6..b2a0661 100644
--- a/README.md
+++ b/README.md
@@ -20,10 +20,18 @@ Simple example
>>> from cffi import FFI
>>> ffi = FFI()
>>> ffi.cdef("""
- ... int printf(const char *format, ...);
- ... """)
- >>> C = ffi.rawload(None) # loads the entire C namespace
- >>> C.printf("hi there, %s!\n", ffi.new("char[]", "world"));
+ ... int printf(const char *format, ...); // copy-pasted from the man page
+ ... """)
+ >>> C = ffi.dlopen(None) # loads the entire C namespace
+ >>> arg = ffi.new("char[]", "world") # equivalent to C code: char arg[] = "world";
+ >>> C.printf("hi there, %s!\n", arg); # call printf
+ hi there, world!
+ >>>
+
+More documentation
+------------------
+
+See [More docs](https://bitbucket.org/xxx) for examples and supported features.
Contact
-------