2012年4月27日

C语言常用函数

摘要: atoi 头文件: #include <stdlib.h> 功 能: 把字符串转换成整型数. 名字来源:array to integer 的缩写. 原型: int atoi(const char *nptr); 函数说明: 参数nptr字符串,如果第一个非空格字符不存在或者不是数字也不是正负号则返回零,否则开始做类型转换,之后检测到非数字(包括结束符 \0) 字符时停止转换,返回整型数。 阅读全文

posted @ 2012-04-27 21:28 wps712 阅读(148) 评论(0) 推荐(0) 编辑

linux下模块与模块间,模块与内核间共享变量

摘要: Linux symbol export method:[1] If we want export the symbol in a module, just use the EXPORT_SYMBOL(xxxx) in the C or H file. And compile the module by adding the compile flag -DEXPORT_SYMTAB. Then we can use the xxxx in the other module.[2] If we want export some symbol in Kernel that is not in a m 阅读全文

posted @ 2012-04-27 21:06 wps712 阅读(794) 评论(0) 推荐(0) 编辑

导航