Query: bstr_printf
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BSTR_PRINTF(9) Basic C Library Functions BSTR_PRINTF(9)NAMEbstr_printf - Format a string from binary arguments and place it in a bufferSYNOPSISint bstr_printf(char * buf, size_t size, const char * fmt, const u32 * bin_buf);ARGUMENTSbuf The buffer to place the result into size The size of the buffer, including the trailing null space fmt The format string to use bin_buf Binary arguments for the format stringDESCRIPTIONThis function like C99 vsnprintf, but the difference is that vsnprintf gets arguments from stack, and bstr_printf gets arguments from bin_buf which is a binary buffer that generated by vbin_printf. The format follows C99 vsnprintf, but has some extensions: see vsnprintf comment for details. The return value is the number of characters which would be generated for the given input, excluding the trailing ' ', as per ISO C99. If you want to have the exact number of characters written into buf as return value (not including the trailing ' '), use vscnprintf. If the return is greater than or equal to size, the resulting string is truncated.COPYRIGHTKernel Hackers Manual 3.10 June 2014 BSTR_PRINTF(9)
Related Man Pages |
---|
explain_vsnprintf(3) - debian |
printf(3) - suse |
snprintf(3) - suse |
ssp(3) - netbsd |
vfprintf(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
Set hard block limit for user using quota |
Best performance UNIX just for HOST Virtualization? |
How to increment version inside a file? |
DB2 convert digits to binary format |
Shopt -s histappend |