---
title: utf8_decodestr
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 15.0+]
path: kernel/4395365-utf8_decodestr
---

# utf8_decodestr

## Declaration

```occ
int utf8_decodestr(const u_int8_t *utf8p, size_t utf8len, u_int16_t *ucsp, size_t *ucslen, size_t buflen, u_int16_t altslash, int flags);
```
