'\" t .\" Title: bitmap_scnprintf .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Basic Kernel Library Functions .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "BITMAP_SCNPRINTF" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Basic Kernel Library Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" bitmap_scnprintf \- convert bitmap to an ASCII hex string\&. .SH "SYNOPSIS" .HP \w'int\ bitmap_scnprintf('u .BI "int bitmap_scnprintf(char\ *\ " "buf" ", unsigned\ int\ " "buflen" ", const\ unsigned\ long\ *\ " "maskp" ", int\ " "nmaskbits" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 byte buffer into which string is placed .RE .PP \fIbuflen\fR .RS 4 reserved size of \fIbuf\fR, in bytes .RE .PP \fImaskp\fR .RS 4 pointer to bitmap to convert .RE .PP \fInmaskbits\fR .RS 4 size of bitmap, in bits .RE .SH "DESCRIPTION" .PP Exactly \fInmaskbits\fR 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 \e0\&. .SH "COPYRIGHT" .br