Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

printf_l(3) [freebsd man page]

PRINTF_L(3)						   BSD Library Functions Manual 					       PRINTF_L(3)

NAME
printf_l, asprintf_l, fprintf_l, snprintf_l, sprintf_l, vasprintf_l, vfprintf_l, vprintf_l, vsnprintf_l, vsprintf_l -- formatted output con- version LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <stdio.h> #include <xlocale.h> int printf_l(locale_t loc, const char * restrict format, ...); int asprintf_l(char **ret, locale_t loc, const char * format, ...); int fprintf_l(FILE * restrict stream, locale_t loc, const char * restrict format, ...); int snprintf_l(char * restrict str, size_t size, locale_t loc, const char * restrict format, ...); int sprintf_l(char * restrict str, locale_t loc, const char * restrict format, ...); int vasprintf_l(char **ret, locale_t loc, const char *format, va_list ap); int vfprintf_l(FILE * restrict stream, locale_t loc, const char * restrict format, va_list ap); int vprintf_l(locale_t loc, const char * restrict format, va_list ap); int vsnprintf_l(char * restrict str, size_t size, locale_t loc, const char * restrict format, va_list ap); int vsprintf_l(char * restrict str, locale_t loc, const char * restrict format, va_list ap); DESCRIPTION
The above functions are used to convert formatted output in the locale loc. They behave in the same way as the versions without the _l suf- fix, but use the specified locale rather than the global or per-thread locale. See the specific manual pages for more information. SEE ALSO
printf(3), xlocale(3) STANDARDS
These functions do not conform to any specific standard so they should be considered as non-portable local extensions. HISTORY
These functions first appeared in Darwin and were first implemented in FreeBSD 9.1. BSD
April 7, 2012 BSD

Check Out this Related Man Page

PRINTF_L(3)						   BSD Library Functions Manual 					       PRINTF_L(3)

NAME
printf_l, asprintf_l, fprintf_l, snprintf_l, sprintf_l, vasprintf_l, vfprintf_l, vprintf_l, vsnprintf_l, vsprintf_l -- formatted output con- version LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <stdio.h> #include <xlocale.h> int printf_l(locale_t loc, const char * restrict format, ...); int asprintf_l(char **ret, locale_t loc, const char * format, ...); int fprintf_l(FILE * restrict stream, locale_t loc, const char * restrict format, ...); int snprintf_l(char * restrict str, size_t size, locale_t loc, const char * restrict format, ...); int sprintf_l(char * restrict str, locale_t loc, const char * restrict format, ...); int vasprintf_l(char **ret, locale_t loc, const char *format, va_list ap); int vfprintf_l(FILE * restrict stream, locale_t loc, const char * restrict format, va_list ap); int vprintf_l(locale_t loc, const char * restrict format, va_list ap); int vsnprintf_l(char * restrict str, size_t size, locale_t loc, const char * restrict format, va_list ap); int vsprintf_l(char * restrict str, locale_t loc, const char * restrict format, va_list ap); DESCRIPTION
The above functions are used to convert formatted output in the locale loc. They behave in the same way as the versions without the _l suf- fix, but use the specified locale rather than the global or per-thread locale. See the specific manual pages for more information. SEE ALSO
printf(3), xlocale(3) STANDARDS
These functions do not conform to any specific standard so they should be considered as non-portable local extensions. HISTORY
These functions first appeared in Darwin and were first implemented in FreeBSD 9.1. BSD
April 7, 2012 BSD
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

word frequency counter - awk solution?

Dear all, i need your help on this. There is a text file, i need to count word frequency for each word with frequency >40 in each line of file and output it into another file with columns like this: word1,word2,word3, ...wordn 0,0,1 1,2,0 3,2,0 etc -- each raw represents... (13 Replies)
Discussion started by: irrevocabile
13 Replies

2. UNIX for Dummies Questions & Answers

Getting non unique lines from concatenated files

Hi All, Is there a way to get NON unique lines from 2 or more concatenated files? Basically I have several files which are very similar with the exception of few lines and I want to find out which lines are different in each file. Very simple example is file1 contains: 1 2 3 4 5file2... (122 Replies)
Discussion started by: pawannoel
122 Replies

3. Red Hat

MRTG Installation and Compilation Error

THESE ARE MY INFORMATION ABOUT MRTG AND LIBERIES. I have mrtg version “mrtg-2.17.2” Then after running :rpm -qa | grep gcc I got gcc-4.4.4-13.el6.x86_64 libgcc-4.4.4-13.el6.x86_64 libgcc-4.4.4-13.el6.i686 Then after running :rpm -qa | grep gd I got... (1 Reply)
Discussion started by: manalisharmabe
1 Replies

4. Shell Programming and Scripting

grep lines from the previous day's file

I have files called printfile.log.1121, printfile.log.1122, etc where 1121 and 1122 are the date of the file creation. The file contents are like: ================================================================================ User = d_prod Env = d_prod Dir =... (3 Replies)
Discussion started by: Daniel Gate
3 Replies

5. HP-UX

Setting printer paper length using unix commands

Hi Guys, I have been trying to resolve a printing problem but nothing works out . I have an Epson LQ 680 (dot matrix printer) . I need to print a file . The paper length should be 34 .Left margin should be 5. I have tried the following things after researching from the man pages. pr -t... (24 Replies)
Discussion started by: Kar1234
24 Replies

6. Programming

Limit line for perl

Hey guys, can help me out with this? How do i limit output for xml to 50 character? i tried *below* but doesnt work, it still print more than 50 characters. Thanks in advance printf "%-50s", "$testline\n"; (4 Replies)
Discussion started by: Nick1097
4 Replies

7. Programming

Using ANSI color codes in gcc compiled program

I have put some yellow color codes and works well. I call the funstion using print_usage(stderr, 0); I would like to know if there is any way, to store the ansi color codes in variables and then call them inside fprintf. Or have a format followed by the strings I want to output. ... (5 Replies)
Discussion started by: kristinu
5 Replies

8. Shell Programming and Scripting

awk - count character count of fields

Hello All, I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form 1|121|asda|434|thesi|2012|05|24| 1|343|unit|09|best|2012|11|5| I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
Discussion started by: PikK45
6 Replies

9. UNIX for Dummies Questions & Answers

Using ls command to display files for range of values only

Hi Forum. I tried to search the forum for an answer but couldn't find it. I have the following files in my directory: PROFILE_TXN_61647.dat PROFILE_TXN_61648.dat PROFILE_TXN_61649.dat PROFILE_TXN_61650.dat PROFILE_TXN_61651.dat PROFILE_TXN_61652.dat PROFILE_TXN_61653.dat... (8 Replies)
Discussion started by: pchang
8 Replies

10. Shell Programming and Scripting

PERL help needed

Hi, I will be asking a series of major newbie questions, and you help is greatly appreciated in advance!! I have to write a script that will parse a logfile in a directory, the directory name changes daily. So far I have: #!/usr/bin/perl open LOGFILE,">logfile.txt"; ($day, $month,... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

11. Shell Programming and Scripting

awk print values between consecutive lines

I have a file in below format: file01.txt TERM TERM TERM ABC 12315 68.53 12042013 165144 ABC 12315 62.12 12042013 165145 ABC 12315 122.36 12052013 165146 ABC 12315 582.18 12052013 165147 ABC 12316 2.36 12052013 165141 ABC 12316 ... (8 Replies)
Discussion started by: alex2005
8 Replies

12. Shell Programming and Scripting

Diff option to get line number

Hi, I am using the below command to get the diff output of two files. Here in the output file, I wish to add line number in front of each line starting position. Please suggest the diff options or some command line utilities. diff -y file1.txt file2.txt --width=300 > diff_f1_f2_300.txt... (5 Replies)
Discussion started by: k_manimuthu
5 Replies

13. Shell Programming and Scripting

Improving code

Gents, I did the below code to get an output (report) ,.. the code works fine but I believe it can be more shorted using better method. Please if you can help, to generate same output improving the code , will be great. here my code. # get diff in time awk '{$9=$8-prev8;prev8=$8;print... (8 Replies)
Discussion started by: jiam912
8 Replies

14. UNIX for Beginners Questions & Answers

Printing issue with AIX 7.2

Hello group. I recently upgraded my company's server from an IBM P520 w/AIX 5.1 to a new Power 8 w/AIX 7.2. The old server used serial printing and we turned off the print queing feature. We did this because we have many custom forms and did not want a que/spooling situation where a print job... (1 Reply)
Discussion started by: Len Davis
1 Replies