SCANF_L(3) Library Functions Manual SCANF_L(3)

fscanf_l, scanf_l, sscanf_l, vfscanf_l, vscanf_l, vsscanf_linput format conversion

Standard C Library (libc, -lc)

#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);

The (), (), (), (), (), and () functions are extended locale versions of the (), (), (), (), (), and () functions, respectively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales.

scanf(3), xlocale(3)

March 11, 2005 macOS 15.2