MCPcopy Create free account
hub / github.com/NetHack/NetHack / memcmp

Function memcmp

sys/vms/oldcrtl.c:90–100  ·  view source on GitHub ↗

int memcmp(const void *, const void *, size_t) -- compare two chunks. */

(buf1, buf2, len)

Source from the content-addressed store, hash-verified

88/* int memcmp(const void *, const void *, size_t) -- compare two chunks.
89*/
90int
91memcmp(buf1, buf2, len)
92REG const char *buf1;
93REG const char *buf2;
94REG int len;
95{
96 while (--len >= 0)
97 if (*buf1++ != *buf2++)
98 return (*--buf1 - *--buf2);
99 return 0; /* buffers matched */
100}
101#endif /*!SUPPRESS_MEM_FUNCS*/
102
103#ifndef SUPPRESS_ATEXIT

Callers 6

read_tilesFunction · 0.85
write_txttileFunction · 0.85
read_bmp_tilesFunction · 0.85
read_gif_tilesFunction · 0.85
vesa_detectFunction · 0.85
same_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected