1VSNPRINTF(9)               Basic C Library Functions              VSNPRINTF(9)
2
3
4

NAME

6       vsnprintf - Format a string and place it in a buffer
7

SYNOPSIS

9       int vsnprintf(char * buf, size_t size, const char * fmt, va_list args);
10

ARGUMENTS

12       buf
13           The buffer to place the result into
14
15       size
16           The size of the buffer, including the trailing null space
17
18       fmt
19           The format string to use
20
21       args
22           Arguments for the format string
23

DESCRIPTION

25       This function follows C99 vsnprintf, but has some extensions: pS output
26       the name of a text symbol with offset ps output the name of a text
27       symbol without offset pF output the name of a function pointer with its
28       offset pf output the name of a function pointer without its offset pR
29       output the address range in a struct resource with decoded flags pr
30       output the address range in a struct resource with raw flags pM output
31       a 6-byte MAC address with colons pm output a 6-byte MAC address without
32       colons pI4 print an IPv4 address without leading zeros pi4 print an
33       IPv4 address with leading zeros pI6 print an IPv6 address with colons
34       pi6 print an IPv6 address without colons pI6c print an IPv6 address as
35       specified by
36

HTTP

38       //tools.ietf.org/html/draft-ietf-6man-text-addr-representation-00
39       pU[bBlL] print a UUID/GUID in big or little endian using lower or upper
40       case.  n is ignored
41
42       The return value is the number of characters which would be generated
43       for the given input, excluding the trailing '\0', as per ISO C99. If
44       you want to have the exact number of characters written into buf as
45       return value (not including the trailing '\0'), use vscnprintf. If the
46       return is greater than or equal to size, the resulting string is
47       truncated.
48
49       Call this function if you are already dealing with a va_list. You
50       probably want snprintf instead.
51
53Kernel Hackers Manual 2.6.       November 2011                    VSNPRINTF(9)
Impressum