随笔分类 -  C

摘要:skynet_context声明在.h里 但定义在.c里面 外部使用的时候无法用ctx->handle获取私有成员,会提示解引用类型错误 必须用.h里函数获取ctx里属性。 阅读全文
posted @ 2017-06-12 18:18 vanishfan 阅读(399) 评论(0) 推荐(0)
摘要:结构体直接赋值的实现 下面是一个实例: #include <stdio.h> struct Foo { char a; int b; double c; }foo1, foo2; //define two structs with three different fields void struct 阅读全文
posted @ 2017-05-22 21:01 vanishfan 阅读(60774) 评论(0) 推荐(2)