ext/hand_rank/hand_rank.c
VALUE rb_rank( VALUE klass, VALUE rb_num_ary ){
  int length = RARRAY_LEN( rb_num_ary );
  int c_cards[ length ];

  convert_ruby_array_to_c_array( rb_num_ary, c_cards, length );

  return INT2NUM( c_rank_hand( c_cards, length ));
}
/******************************************************************************/
/*  These are Ruby functions, in C, and deal with the convertion of values to */
/*  and from the two contexts.                                                */
/******************************************************************************/
These are Ruby functions, in C, and deal with the convertion of values to
and from the two contexts.
These are Ruby functions in C and deal with the convertion of values to and from the two contexts .
VALUE rb_rank( VALUE klass, VALUE rb_num_ary ){
  int length = RARRAY_LEN( rb_num_ary );
  int c_cards[ length ];
  convert_ruby_array_to_c_array( rb_num_ary, c_cards, length );
  return INT2NUM( c_rank_hand( c_cards, length ));
}
VALUE rb_rank ( VALUE klass , VALUE rb_num_ary ) { int length = RARRAY_LEN ( rb_num_ary ) ; int c_cards [ length ] ; convert_ruby_array_to_c_array ( rb_num_ary , c_cards , length ) ; return INT2NUM ( c_rank_hand ( c_cards , length ) ) ; }
These are Ruby functions, in C, and deal with the convertion of values to
and from the two contexts.
These are Ruby functions in C and deal with the convertion of values to and from the two contexts .