GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SCANF_L(3) FreeBSD Library Functions Manual SCANF_L(3)

scanf_l, fscanf_l, sscanf_l, vfscanf_l, vscanf_l, vsscanf_l
input format conversion

Standard C Library (libc, -lc)

#include <stdio.h>
#include <xlocale.h>

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

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

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

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 above functions scan input according to a specified format in the locale loc. They behave in the same way as the versions without the _l suffix, but use the specific locale rather than the global or per-thread locale. See the specific manual pages for more information.

scanf(3), xlocale(3)

These functions do not conform to any specific standard so they should be considered as non-portable local extensions.

These functions first appeared in Darwin and were first implemented in FreeBSD 9.1.
April 8, 2012 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.