code: function cwrap(ident, returnType, argTypes) {
    var func = getCFunc(ident);
    return function() {
      return ccallFunc(func, returnType, argTypes, Array.prototype.slice.call(arguments));
    }
  }
docs: Returns a native JS wrapper for a C function. This is similar to ccall, but returns a function you can call repeatedly in a normal way. For example:  var my_function = cwrap('my_c_function', 'number', ['number', 'number']); alert(my_function(5, 22)); alert(my_function(99, 12));