09 2017 档案
linux 编程
摘要:strtod 函数 将字符串转换成浮点数。 函数原型: #include <stdlib.h> double strtod(const char *nptr, char **endptr); 相关函数: atoi,atol,strtod,strtol,strtoul 函数说明: strtod()会扫 阅读全文
posted @ 2017-09-21 09:30 doscho 阅读(150) 评论(0) 推荐(0) 编辑
times、 time、clock函数说明
摘要:sysconf( _SC_CLK_TCK ) 功能 获取系统的 时钟滴答的频率。 clock_gettime() clock()返回的是各个线程运行cpu时间的和, 返回值一直都是0. 定义函数:time_t time(time_t *t);函数说明:此函数会返回从公元 1970 年1 月1 日的U 阅读全文
posted @ 2017-09-16 16:00 doscho 阅读(1950) 评论(0) 推荐(0) 编辑
gcc 学习
摘要:gcc -lrt 参数说明: 说明在连接生成可执行文件的时候,将连接库librt.so or librt.a -l 参数说明 连接库 编译 使用 clock_gettime函数的,gcc需要添加上 rt库。 阅读全文
posted @ 2017-09-16 09:41 doscho 阅读(347) 评论(0) 推荐(0) 编辑
2010912 双模机顶盒学习记录
摘要:双模机顶盒 直播走igmp/rtsp组播协议 单播走hls(OTT)协议。 系统调用 getopt 位于 unistd.h 系统头文件,原型: int getopt( int argc, char *const argv[], const char *optstring ); optstring是一 阅读全文
posted @ 2017-09-13 15:30 doscho 阅读(174) 评论(0) 推荐(0) 编辑
C语言学习
摘要:32个关键字, char、double、enum、float、int、long、short、signed、static、struct、union、unsigned、 9个控制语句 34种运算符 常量: 直接常量 - 如 整型常量2, 符号常量 - 程序中有具体语义的项(如:常量、变量、符号、宏和函数 阅读全文
posted @ 2017-09-06 20:42 doscho 阅读(115) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示