erlang's global lock
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

12 行
342 B

#include "erl_nif.h"
#include <stdio.h>
static ERL_NIF_TERM termInt(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {
ErlNifUInt64 TermInt = (ErlNifUInt64)argv[0];
return enif_make_uint64(env, TermInt);
}
static ErlNifFunc nif_funcs[] = {
{"termInt", 1, termInt}
};
ERL_NIF_INIT(termInt, nif_funcs, NULL, NULL, NULL, NULL);