发布时间:2012-12-18 08:18:56
sscanf可以从字符串中取出整数、浮点数和字符串等等。特别对于整数和浮点数来说1. 常见用法。char str[512] = {0};sscanf("123456 ", "%s", str);printf("str=%s\n", str);2. 取指定长度的字符串。如在下例中,取最大长度为4字节的字符串。sscanf("123456 ", "%4s", str);printf("str=%s\n", str);3. 取到指定字符为止的字符串。如在下例中,取遇到空格为止字符串。sscanf("123456 abcdedf", "%[^ ]", str);printf("str=%s\n", s......【阅读全文】
发布时间:2012-12-17 11:56:26
Raw TCP/IP interface for lwIPAuthors: Adam Dunkels, Leon Woestenberg, Christiaan SimonslwIP provides three Application Program's Interfaces (APIs) for programsto use for communication with the TCP/IP code:* low-level "core" / "callback" or "raw" API.* higher-level "sequential" API.* BSD-style socket......【阅读全文】
发布时间:2012-12-14 11:52:25
表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名......【阅读全文】
发布时间:2012-12-13 09:15:17
/etc/init.d/uhttpd stopopkg install /xutest/uhttpd_31_ar71xx.ipkopkg install /xutest/uhttpd_xu1_ar71xx.ipk/etc/init.d/uhttpd enable/etc/init.d/uhttpd start【Receive from 192.168.1.1 : 47881】:uhttpd mainloop-->#192.168.1.1/xutest/web-cgi.html【Receive from 192.168.1.1 : 58907】:uh_http_header_parse--......【阅读全文】