I’m trying to figure out how c bindings in crystal work. For starters I’m wondering how I would include a simple hello world c function into crystal. Always good to start with the basics right? Here’s the function I’d like to include:
#include <stdio.h>
void hello(const char * name){
printf("Hello %s!\n", name);
}
libawesome.so
(which is complicated from the C side) and then you can use it like the usual examples:@[Link("awesome")]
. – Kalakalaazar