Deklaracja
int memcmp (const void *s1, const void *s2, size_t size);
Plik nagłówkowy
string.h
Opis
Funkcja porównuje size pierwszych bajtów napisów s1 i s2.
Kod źródłowy //https://github.com/torvalds/linux/blob/master/lib/string.c __visible int memcmp(const void *cs, const void *ct, size_t count)
const unsigned char *su1, *su2;
int res = 0;
for (su1 = cs, su2 = ct; 0 s2
Zgodne z SVID 3, BSD 4.3, ISO 9899 (C99)
Zobacz też strcmp strstr strcoll