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