erlang's global lock
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

11 行
342 B

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