title: chibi-scheme embedded: calling scheme function with multiple params from C
body: <p>The following site shows an sample of embedding chibi scheme into a c program:</p>
  
  <p><a href="http://synthcode.com/scheme/chibi/" rel="nofollow noreferrer">http://synthcode.com/scheme/chibi/</a></p>
  
  <pre><code>/* construct a Scheme expression to eval */
  obj1 = sexp_intern(ctx, "my-procedure", -1);
  obj2 = sexp_cons(ctx, obj1, SEXP_NULL);
  sexp_eval(ctx, obj2, NULL);
  </code></pre>
  
  <p>That snippet shows how to call a procedure. Now, I'm trying to call a procedure with an argument, but I'm not getting it to work.</p>
  
  <p>I'm both new at scheme and at chibi. This is how I thought it would be:</p>
  
  <pre><code>obj1 = sexp_intern(ctx, "my-procedure", -1);
  obj2 = sexp_make_fixnum(3); 
  tmp  = sexp_cons(ctx, obj1, obj2);
  sym  = sexp_cons(ctx, tmp, SEXP_NULL);
  res  = sexp_eval(ctx, sym, NULL);
  </code></pre>
  
  <p>I get this error back from chibi: dotted list in source</p>
  
  <p>How can I call a procedure with multiple params?</p>