在C中,memmem函数用于定位内存区域中的特定字节序列。它可以同化为strstr,专门用于以空字符结尾的字符串。这个函数作为GNU扩展提供,而不是直接在标准库中,有什么特别的原因吗?手册指出:ThisfunctionwasbrokeninLinuxlibrariesuptoandincludinglibc5.0.9;theretheneedleandhaystackargumentswereinterchanged,andapointertotheendofthefirstoccurrenceofneedlewasreturned.Botholdandnewlibc'shavethe