Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r2089:5e5d1fe207c8 Date: 2015-05-22 19:19 +0200 http://bitbucket.org/cffi/cffi/changeset/5e5d1fe207c8/
Log: typo diff --git a/doc/source/overview.rst b/doc/source/overview.rst --- a/doc/source/overview.rst +++ b/doc/source/overview.rst @@ -35,6 +35,8 @@ >>> arg = ffi.new("char[]", "world") # equivalent to C code: char arg[] = "world"; >>> C.printf("hi there, %s!\n", arg) # call printf hi there, world! + 17 # this is the return value + >>> Note that on Python 3 you need to pass byte strings to ``char *`` arguments. In the above example it would be ``b"world"`` and ``b"hi @@ -120,7 +122,7 @@ """, libraries=[]) # or a list of libraries to link with - ffi.cdef(""" // some declarations from the man page + ffi.cdef(""" // some declarations from the man page struct passwd { char *pw_name; ...; // literally dot-dot-dot _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit