Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sscanf_l(3) [osx man page]

SCANF_L(3)						   BSD Library Functions Manual 						SCANF_L(3)

NAME
fscanf_l, scanf_l, sscanf_l, vfscanf_l, vscanf_l, vsscanf_l -- input format conversion LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#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); DESCRIPTION
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. SEE ALSO
scanf(3), xlocale(3) BSD
March 11, 2005 BSD

Check Out this Related Man Page

SCANF_L(3)						   BSD Library Functions Manual 						SCANF_L(3)

NAME
fscanf_l, scanf_l, sscanf_l, vfscanf_l, vscanf_l, vsscanf_l -- input format conversion LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#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); DESCRIPTION
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. SEE ALSO
scanf(3), xlocale(3) BSD
March 11, 2005 BSD
Man Page

9 More Discussions You Might Find Interesting

1. Programming

Separating commands/programs with ;

Hi i have encountered a problem and i have tried many different things but my brain just has some limitations lol well anyways i was trying to make this program work down below so i can process multiple commands just by separating them with ;. I would apeciate if someone could just make it work kuz... (2 Replies)
Discussion started by: dush_19
2 Replies

2. Programming

Reading In and Exec

(using C) I'm getting really frustrated because I feel what I'm trying to do is easy as pie but I can't think of it. I'm reading in a file that contains a list of commands (ie- wc -cl ls, etc), one per line, and I need to execute those commands on the cwd. I'm used to C++ so I'm having problems... (4 Replies)
Discussion started by: astonmartin
4 Replies

3. Programming

c++ overflow problem

I have come accross a rather strange problem with two buffers that seem to be overriding each other. bool killSession(const Session &session){ //Get user FILE* fp = fopen("conf/sessions.current", "rt"); char line; char user; int x = 0; int leaseTime; printf("key: %s \n" ,... (2 Replies)
Discussion started by: mshindo
2 Replies

4. Programming

Read arguments from a config file in C

Hello everybody, I'm coding a program in C and i'm getting troubles with this. I need to read a config file and store the arguments into individual variables, let's say the config file looks like the following: #This is the configuration file... 192.168.0.1 A1:B1:C1:D1:E1:F1 192.168.0.2... (2 Replies)
Discussion started by: semash!
2 Replies

5. Programming

Read redirected file from stdin in C (a.out < file)

Hello everybody, Having a file with the following content: 192.168.0.254->192.168.0.1 192.168.0.2->192.168.0.34 192.168.0.56->192.168.0.77 I need to code a program in C to read it from stdin redirection (i.e. root@box~# ./a.out < file), my question is, how can i do that? I've tried with... (2 Replies)
Discussion started by: semash!
2 Replies

6. Programming

How i use pointer as a string in c programing?

I'm newbie learner. My all friend use windows just only me use linux. so i can't solve any problem by myself. i need a solution. how can i use pointer as a string. #include<string.h> #include<stdio.h> int main() { char *s='\0'; gets(s); puts(s); return 0; } This code work on... (6 Replies)
Discussion started by: raihan004
6 Replies

7. Programming

Clear standard input buffer for C program in Linux

Hello friends! i am writing a code in which i take inputs (numbers) from user and count the total number of positive, negative and zeros entered. I need to clear my standard input buffer before scanf() command. My compiler is completely ignoring the fflush(stdin) command. its not even showing any... (1 Reply)
Discussion started by: Abhishek_kumar
1 Replies

8. Programming

Correct way to read data of different formats into same struct

I was wondering what is the correct way to read in data "one-part-per-line" as compared with "one-record-per-line" formats into the same structure in C? format1.dat: Zacker 244.00 244.00 542.00 Lee 265.00 265.00 456.00 Walter 235.00 235.00 212.00 Zena 323.00 215.45 ... (12 Replies)
Discussion started by: yifangt
12 Replies

9. Programming

Format specifier for sscanf() in C

Hello, I have formatted lines delimited by colon ":", and I need to parse the line into two parts with sscanf() with format specifiers. infile.txt: Sample Name: sample1 SNPs : 91 MNPs : 1 Insertions : 5 Deletions ... (13 Replies)
Discussion started by: yifangt
13 Replies