发布时间: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......【阅读全文】