---
name: "wprintf_l"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/wprintf_l"
---

# wprintf\_l(3)

formatted wide character output conversion

## NAME

**wprintf\_l**, **fwprintf\_l**, **swprintf\_l**, **vwprintf\_l**, **vfwprintf\_l**, **vswprintf\_l** – formatted wide character output conversion

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#include \<stdio.h\>**

**#include \<wchar.h\>**

**#include \<xlocale.h\>**

*int*\

**fwprintf\_l**(*FILE \* restrict stream*, *locale\_t loc*, *const wchar\_t \* restrict format*, *...*);

*int*\

**swprintf\_l**(*wchar\_t \* restrict ws*, *size\_t n*, *locale\_t loc*, *const wchar\_t \* restrict format*, *...*);

*int*\

**wprintf\_l**(*locale\_t loc*, *const wchar\_t \* restrict format*, *...*);

**#include \<stdarg.h\>**

*int*\

**vfwprintf\_l**(*FILE \* restrict stream*, *locale\_t loc*, *const wchar\_t \* restrict*, *va\_list ap*);

*int*\

**vswprintf\_l**(*wchar\_t \* restrict ws*, *size\_t n*, *locale\_t loc*, *const wchar\_t \*restrict format*, *va\_list ap*);

*int*\

**vwprintf\_l**(*locale\_t loc*, *const wchar\_t \* restrict format*, *va\_list ap*);

## DESCRIPTION

The **wprintf\_l**(), **fwprintf\_l**(), **swprintf\_l**(), **vwprintf\_l**(), **vfwprintf\_l**(), and **vswprintf\_l**() functions are extended locale versions of the **wprintf**(), **fwprintf**(), **swprintf**(), **vwprintf**(), **vfwprintf**(), and **vswprintf**() functions, respectively. Refer to their manual pages for details. Also, see [xlocale(3)](/xlocale/3.md) for more information about extended locales.

## SEE ALSO

[wprintf(3)](/wprintf/3.md), [xlocale(3)](/xlocale/3.md)
