Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from cffi import FFI
f = FFI()
def pytest(a):
return a*a
void test(void);
int (*pytest)(int);
l = f.verify('''
#include <stdio.h>
static int (*pytest)(int);
void test(){
printf("Alice ma %d lalek.\\n", pytest(3));
l.pytest = pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment