---
title: strlcmp
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 14.4+]
path: kernel/4316405-strlcmp
---

# strlcmp

## Declaration

```occ
int strlcmp(const char *s1, const char *s2, size_t n);
```
