int main() { if(init_library()) hello_message("EK"); else printf("Error, Library not found\n"); return 0; }
int main() { if( init_library() ) hello_message("Dmitry"); else printf("Library was not loaded\n"); return 0; }
static VALUE rb_hello_message(VALUE self) { Hello *hello; const char *message; TypedData_Get_Struct(self, Hello, &rb_hello_type, hello); message = hello_message(hello); return rb_str_new_cstr(message); }