---
title: memcmp
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: kernel/1579327-memcmp
---

# memcmp

## Declaration

```occ
int memcmp(const void *s1, const void *s2, size_t n);
```
