コード例 #1
0
ファイル: 1-3-2-main.c プロジェクト: Cergoo/junk
int main()
{
    if(init_library())
        hello_message("EK");
    else
        printf("Error, Library not found\n");
    return 0;
}
コード例 #2
0
ファイル: main.c プロジェクト: DGolgovsky/cpp_study
int main()
{
    if( init_library() )
        hello_message("Dmitry");
    else
        printf("Library was not loaded\n");
    return 0;
}
コード例 #3
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);
}