All pastes #2104487 Raw Edit

Mine

public text v1 · immutable
#2104487 ·published 2012-01-20 13:52 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

/* Example worker using a string */
static int worker( double *d_ptr, char *string )
{
    double d = *d_ptr
    return sin(d) + sin(strtod( string, NULL ));
}

/* exported wrapper, all double * arguments, calls the real
** function with whatever data types it expects
*/
int caller(double *x, double *y)
{
    return worker(x,(char *)y);
}