Packages

A GSM 7/8 character strings encoder/decoder for Erlang based on the implementation from Android Open Source Project.

Current section

Files

Jump to
gsm_coder c_src nif_utils.h
Raw

c_src/nif_utils.h

#ifndef C_SRC_NIF_UTILS_H_
#define C_SRC_NIF_UTILS_H_
#include <stdint.h>
#include "erl_nif.h"
ERL_NIF_TERM make_atom(ErlNifEnv* env, const char* name);
ERL_NIF_TERM make_binary(ErlNifEnv* env, const uint8_t* buff, size_t length);
ERL_NIF_TERM make_badarg(ErlNifEnv* env);
#endif // C_SRC_NIF_UTILS_H_