scanf_l(3)

scanf_l3

Input format conversion

Usage

#include <stdio.h>

#include <xlocale.h>

int

fscanf_l(FILE * restrict stream, locale_t loc, const char * restrict format, ...);

int

scanf_l(locale_t loc, const char * restrict format, ...);

int

sscanf_l(const char * restrict str, locale_t loc, const char * restrict format, ...);

#include <stdarg.h>

#include <xlocale.h>

int

vfscanf_l(FILE * restrict stream, locale_t loc, const char * restrict format, va_list ap);

int

vscanf_l(locale_t loc, const char * restrict format, va_list ap);

int

vsscanf_l(const char * restrict str, locale_t loc, const char * restrict format, va_list ap);

Library

Standard C Library (libc, -lc)

Overview

The scanf_l(), fscanf_l(), sscanf_l(), vscanf_l(), vsscanf_l(), and vfscanf_l() functions are extended locale versions of the scanf(), fscanf(), sscanf(), vscanf(), vsscanf(), and vfscanf() functions, respectively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales.

Releases

135 releases since Mac OS X 10.4; the text changed 1 time.

  1. 10.4–10.4.11
  2. 10.5–26.5

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.