/CFFI-DEMO

Primary LanguagePython

Python CFFI Demo

Calling C functions from Python

Introduction

This is a companion repo for an article on www.coderancher.us The article demonstrates how to call C library functions from Python.

To compile with gcc run: gcc -shared -o example.so example.c

You can find the article at: www.coderancher.us/