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
Hello mates:
I met problem with using read() & write(). I m trying to use read twice on client first time is the size of buffer, 2nd time is the buffer. I think I have to, coz I dnot know file size. So, I write twice on server as well -- 1st, filesize; 2nd, buffer.
The problem is, sometimes,... (11 Replies)
I need some help. I been doing system admin for the last several years and gotten very rusty on scripting. I need to write a script that will take a log entry and do math using two columns of data to create a new column. I am taking the column(#2) that contains the time and the column(#5) that... (3 Replies)
Hello,
I am having a problem with the script I am using to create a column from two columns I have in my file. I am needing to take column 5 and subtract it from column 2 to create column 6. I have included the script I am using and the rawdata I am using.
Raw Data File:... (4 Replies)
Hello friends,
I have a problem in printing an array..
Example if my array line contains 4 elements like following
line=0002 , line=202200, line=200002, line= 300313
Now one = sprintf line line line line will concatenate my whole array to one.
But I am not sure about the... (7 Replies)
hello,
i use this command in my code:
(void) sprintf ( LBuf, "/bin/sed 's/\\//g' %s > %s", tmp1,tmp2);
but i get this error :
sh: syntax error at line 1:'end of file' unexpected
any help please
thank you (1 Reply)
im quite a noob in both unix and c++ and i encountered this line
lc = 41
i think i = 1 first since this line is included in a for loop
sprintf(like,"%s%i","0",lc);
I cant understand this line
when it is first executed the output is
041 (3 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)
Hi
I am trying to modify a C program to work for my needs. Problem is I don't know any real programming. I would really appreciate it if someone could help me!
Basically it is to get bandwidth speeds from a remote box. I have two terminal commands that get me the up and down speeds.
So how do... (8 Replies)
Hi all,
I have installed samba 3.6.22 on AIX 7.1 and join a windows AD with success.
All seem to work fine, I have configured smb.conf, methods.cfg, kerberos, user .... the following command work fine wbinfo -u, wbinfo -g, wbinfo -i, wbinfo -s, wbinfo -S, lsuser, id...
The unique... (20 Replies)
I been trying to sort this error for some time now and am unable to find out whats causing it, I added the source files for the mux channel code maybe some one can see what going on something am missing.
Errors:
mpreq_mux#000R2: MPMuxOpen: Unable to create low-level I/O
channel.... (6 Replies)