---
name: "bitmap_scnprintf"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/bitmap_scnprintf"
---

# bitmap\_scnprintf(9)

convert bitmap to an ASCII hex string.

## NAME

bitmap\_scnprintf - convert bitmap to an ASCII hex string.

## SYNOPSIS

**int bitmap\_scnprintf(char \*** *buf***, unsigned int** *buflen***, const unsigned long \*** *maskp***, int** *nmaskbits***);**

## ARGUMENTS

*buf*

byte buffer into which string is placed

*buflen*

reserved size of *buf*, in bytes

*maskp*

pointer to bitmap to convert

*nmaskbits*

size of bitmap, in bits

## DESCRIPTION

Exactly *nmaskbits* bits are displayed. Hex digits are grouped into comma-separated sets of eight digits per set. Returns the number of characters which were written to \*buf, excluding the trailing \\0.

## COPYRIGHT
