We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df453f0 commit ecfd8e1Copy full SHA for ecfd8e1
1 file changed
examples/unix/ffi_example.py
@@ -5,9 +5,9 @@
5
print()
6
7
# Declare few functions
8
-perror = libc.func("v", "perror", ["s"])
+perror = libc.func("v", "perror", "s")
9
time = libc.func("i", "time", "p")
10
-open = libc.func("i", "open", ["s", "i"])
+open = libc.func("i", "open", "si")
11
qsort = libc.func("v", "qsort", "piip")
12
# And one variable
13
errno = libc.var("i", "errno")
0 commit comments