![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c/c++
lotusagile
这个作者很懒,什么都没留下…
展开
-
格式化的打印输出
#include #include #define LOG_NONE (-1) #define LOG_ERROR 0 #define LOG_WARNING 1 #define LOG_INFO 2 #define LOG_DEBUG 3 void sky_log( const char *na原创 2013-09-17 14:43:47 · 533 阅读 · 1 评论 -
coredump文件设置及调试
linux下coredump文件管理及问题定位 1、core文件生成开关、大小及路径设置 查看大小命令:ulimit -c, 如果结果是0,则表示开关关闭,否则表示产生core文件的大小 查看路径设置:cat /proc/sys/kernel/core_pattern或sysctl -a |grep pattern 大小设置:ulimit -c filesize(单位kbyte),原创 2013-08-17 11:07:18 · 675 阅读 · 0 评论 -
stl list 正确删除节点程序实例
#include #include #include using namespace std; #define ARR_SIZE 20 char * genArr(const char *str) { char * arr = new char [ARR_SIZE]; memset(arr, 0, ARR_SIZE); int len = strlen(str) strncpy原创 2013-09-03 16:17:54 · 651 阅读 · 0 评论