发布时间:2012-12-18 08:43:18
// ---------------------- extern "C" 的说明 -------------------------------------------------//If building with a C++ compiler, make all of the definitions in this header have a C binding.#ifdef __cplusplusextern "C"{#endif#include "../third_party/lwip-1.3.0/src/include/lwip/opt.h"#ifdef __cplusplus}#e......【阅读全文】
发布时间: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);函数说明: 通过文件名......【阅读全文】