title: RubyInline: Error: too few arguments to function
body: <p>I have the following C code:</p>
  
  <pre><code>VALUE find_index(VALUE arr, VALUE num_elements, VALUE element){
    ....
  }
  
  ....
  
  VALUE array_distance(VALUE arr1, VALUE arr2){
    long arr1_len = RARRAY_LEN(arr1);
    VALUE *c_arr2 = RARRAY_PTR(arr2);
    long i;
    for(i = 0; i &lt; arr2_len; i++){
      long arr1_index = find_index(arr1, arr1_len, c_arr2[i]);
      ....
    }
  }
  </code></pre>
  
  <p>When compiling this, I get the following error:</p>
  
  <pre>
  In function ‘VALUE array_distance(VALUE, VALUE, VALUE)’:
  
  error: too few arguments to function ‘VALUE find_index(VALUE, VALUE, VALUE, VALUE)’
  </pre>
  
  <p>Can someone help with what is wrong here?</p>