![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程语言
ahyswang
热爱编程,更热爱生活
展开
-
c堆内存分配总结
1. malloc 原型:void * malloc(unsigned int num_bytes); 功能:分配长度为num_bytes字节的内存块 返回值:成功返回地址,失败返回NULL 说明:malloc的全称是memory allocation,中文叫动态内存分配 2. calloc 原型:void *calloc(unsigned n,unsigned size)原创 2012-06-20 13:43:36 · 396 阅读 · 0 评论 -
字符串处理函数
#include #include #include #include #include #include using namespace std; //格式化字符串 void format_str(string & str, const char * format, ...){ #define MAX_LINE 1024 va_list argList; va_s原创 2013-02-26 16:40:21 · 484 阅读 · 0 评论 -
librtmp 服务器断开连接 异常处理
1、现象 RTMP_Close()内部无限循环导致 2、解决 WriteN(RTMP *r, const char *buffer, int n) 检查到网络断开,做判断 其他地方类似处理原创 2014-10-22 13:46:37 · 2119 阅读 · 1 评论