---
title: strprefix
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.5+]
path: kernel/1579348-strprefix
---

# strprefix

## Declaration

```occ
int strprefix(const char *s1, const char *s2);
```

## See Also

### String Contents

- [strchr](kernel/1579345-strchr.md)
- [strlen](kernel/1579342-strlen.md)
- [strnlen](kernel/1579340-strnlen.md)
- [strnstr](kernel/1579346-strnstr.md)
- [strsep](kernel/1441093-strsep.md)
