Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 memecmp(),第三个参数是 size_t(unsigned)。但是当我们将第三个参数作为 -1 传递时总是返回 0,即使第一个和第二个参数指向的内存块不同?
你在比较什么?如果两个内存块中的内容相等则memcmp()返回。0
memcmp()
0