Skip to content
Snippets Groups Projects
Commit ecfd8e10 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

examples/unix/ffi_example.py: Update for current "ffi" module API.

parent df453f06
Branches
Tags
No related merge requests found
...@@ -5,9 +5,9 @@ print("libc:", libc) ...@@ -5,9 +5,9 @@ print("libc:", libc)
print() print()
# Declare few functions # Declare few functions
perror = libc.func("v", "perror", ["s"]) perror = libc.func("v", "perror", "s")
time = libc.func("i", "time", "p") time = libc.func("i", "time", "p")
open = libc.func("i", "open", ["s", "i"]) open = libc.func("i", "open", "si")
qsort = libc.func("v", "qsort", "piip") qsort = libc.func("v", "qsort", "piip")
# And one variable # And one variable
errno = libc.var("i", "errno") errno = libc.var("i", "errno")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment