摘要:
参考文档: 《Programming Erlang》,第12章:Interfacing Techniques创建C源文件: hello.c 具体函数的实现hello.cint twice(int arg) { return (arg * arg);}int sum(int arg1, int arg2) { return (arg1 + arg2);} hello_driver.c 驱动程序运行hello_driver.c#include <stdio.h>#define BUFFER_SIZE 100typedef unsigned char byte; //8 bitin... 阅读全文