Name

bprintf — Parse a format string and place args' binary value in a buffer

Synopsis

int bprintf (u32 * bin_buf,
 size_t size,
 const char * fmt,
  ...);
 

Arguments

u32 * bin_buf

The buffer to place args' binary value

size_t size

The size of the buffer(by words(32bits), not characters)

const char * fmt

The format string to use

...

Arguments for the format string

Description

The function returns the number of words(u32) written into bin_buf.