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

NAME

6       vbin_printf - Parse a format string and place args' binary value in a
7       buffer
8

SYNOPSIS

10       int vbin_printf(u32 * bin_buf, size_t size, const char * fmt,
11                       va_list args);
12

ARGUMENTS

14       bin_buf
15           The buffer to place args' binary value
16
17       size
18           The size of the buffer(by words(32bits), not characters)
19
20       fmt
21           The format string to use
22
23       args
24           Arguments for the format string
25

DESCRIPTION

27       The format follows C99 vsnprintf, except n is ignored, and its argument
28       is skiped.
29
30       The return value is the number of words(32bits) which would be
31       generated for the given input.
32

NOTE

34       If the return value is greater than size, the resulting bin_buf is NOT
35       valid for bstr_printf.
36
38Kernel Hackers Manual 3.10         June 2019                    VBIN_PRINTF(9)
Impressum