09 2016 档案

使用c函数库的两个函数strtok, strncpy遇到的问题记录
摘要:1. strtok 问题背景: 解析形如 “1,2,3,4,5”字符串到整数数组 (1)计算个数 char* delim = ","; int count = 0; int *numbers = NULL; char* str = "1,2,3,4,5"; char* token = strtok( 阅读全文

posted @ 2016-09-30 19:13 那个人好像一条狗 阅读(320) 评论(0) 推荐(0)

memset 导致的段错误(segmentation fault)
摘要:在调试Minixml库时,定义了一个结构体: struct ssid_info_s{ std::string wl_ssid_name; std::string wl_ssid_mac; std::string wl_wpa_psk; bool wl_bss_enabled; unsigned in 阅读全文

posted @ 2016-09-08 17:30 那个人好像一条狗 阅读(2949) 评论(0) 推荐(0)

< 2025年7月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9
点击右上角即可分享
微信分享提示