---
title: sprintf
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.12+]
path: kernel/1441083-sprintf
---

# sprintf

## Declaration

```occ
int sprintf(char *bufp, const char *, ...);
```

```occ
int sprintf(char *str, const char *format, ...);
```
