---
name: "bitmap_print_to_pagebuf"
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/bitmap_print_to_pagebuf"
---

# bitmap\_print\_to\_pagebuf(9)

convert bitmap to list or hex format ASCII string

## NAME

bitmap\_print\_to\_pagebuf - convert bitmap to list or hex format ASCII string

## SYNOPSIS

**int bitmap\_print\_to\_pagebuf(bool** *list***, char \*** *buf***, const unsigned long \*** *maskp***, int** *nmaskbits***);**

## ARGUMENTS

*list*

indicates whether the bitmap must be list

*buf*

page aligned buffer into which string is placed

*maskp*

pointer to bitmap to convert

*nmaskbits*

size of bitmap, in bits

## DESCRIPTION

Output format is a comma-separated list of decimal numbers and ranges if list is specified or hex digits grouped into comma-separated sets of 8 digits/set. Returns the number of characters written to buf.

It is assumed that *buf* is a pointer into a PAGE\_SIZE area and that sufficient storage remains at *buf* to accommodate the **bitmap\_print\_to\_pagebuf** output.

## COPYRIGHT
