[ create a new paste ] login | about

Link: http://codepad.org/4Plp0X05    [ raw code | fork ]

C, pasted on Aug 17:
#include <stdio.h>

typedef void* HW;
typedef unsigned long ulong;

__declspec(dllexport) void __stdcall
flopequity(HW hero[],
           HW villain[],
           double hcounters[],
           double vcounters[],
           double hsums[],
           double vsums[],
           ulong board,
           __int32 lenh,
           __int32 lenv) {
    puts("Hello");
}

/**
Compile the it with:
    > gcc -shared mylib.c -o mylib.dll -Wl,--kill-at
or
    > gcc -shared mylib.c -o mylib.dll -Wl,--add-stdcall-alias

and test it from python:

from ctypes import *
mylib = windll.mylib
mylib.flopequity(None, None, None, None, None, None, 0, 0, 0)

**/


Create a new paste based on this one


Comments: