---
name: "vbin_printf"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/vbin_printf"
---

# vbin\_printf(9)

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

## NAME

vbin\_printf - Parse a format string and place args' binary value in a buffer

## SYNOPSIS

**int vbin\_printf(u32 \*** *bin\_buf***, size\_t** *size***, const char \*** *fmt***, va\_list** *args***);**

## ARGUMENTS

*bin\_buf*

The buffer to place args' binary value

*size*

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

*fmt*

The format string to use

*args*

Arguments for the format string

## DESCRIPTION

The format follows C99 vsnprintf, except **n** is ignored, and its argument is skipped.

The return value is the number of words(32bits) which would be generated for the given input.

## NOTE

If the return value is greater than *size*, the resulting bin\_buf is NOT valid for **bstr\_printf**.

## COPYRIGHT
