摘要: google search linux c一站式学习 命令 描述 backtrace(或bt) 查看各级函数调用及参数 finish 连续运行到当前函数返回为止,然后停下来等待命令 frame(或f) 帧编号 选择栈帧 info(或i) locals 查看当前栈帧局部变量的值 list(或l) 列出 阅读全文
posted @ 2012-04-13 17:21 mosakashaka 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.iteye.com/topic/202588 strncpy(dest, src, n);似乎是安全的函数 原型: char *strncpy(char *restrict s1, const char *restrict s2, size_t n); 今天碰到了问题,是 阅读全文
posted @ 2012-04-13 10:55 mosakashaka 阅读(279) 评论(0) 推荐(0) 编辑