DEV Community

Discussion on: Rust Function Pointers Across FFI Boundary

Collapse
deciduously profile image
Ben Lovy Author • Edited on

....and got there. Leaving this for posterity - STDOUT wasn't flushing. Gotta call it explicitly from C:

void job(void)
{
    //printf("Hello!  It is now %s\n", now());
    //exit(1);
    printf("Hello!");
    fflush(stdout);
}

Enter fullscreen mode Exit fullscreen mode