Skip to content

Instantly share code, notes, and snippets.

@volh
Created December 17, 2010 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volh/744609 to your computer and use it in GitHub Desktop.
Save volh/744609 to your computer and use it in GitHub Desktop.
CAMLprim value mlzmq_version(value unit)
{
CAMLparam1(unit);
int major, minor, patch;
zmq_version(&major, &minor, &patch);
CAMLlocal1( result );
result = caml_alloc(3, 0);
Store_field( result, 0, Val_int major );
Store_field( result, 1, Val_int minor );
Store_field( result, 2, Val_int patch );
CAMLreturn( result );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment