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() の場合、3 番目のパラメーターは size_t(unsigned) です。しかし、第 3 パラメーターを -1 として渡すと、第 1 パラメーターと第 2 パラメーターが指すメモリ ブロックが異なっていても、常に 0 が返されるのでしょうか?
何を比較していますか?2 つのメモリ ブロックの内容が等しいかどうかをmemcmp()返します。0
memcmp()
0