BITMAP_PARSELIST

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

bitmap_parselist - convert list format ASCII string to bitmap  

SYNOPSIS

"SYNOPSIS"

int bitmap_parselist (const char * bp, unsigned long * maskp, int nmaskbits);  

ARGUMENTS

bp
-- undescribed --
maskp
-- undescribed --
nmaskbits
number of bits in mask to be written
 

DESCRIPTION

Input format is a comma-separated list of decimal numbers and ranges. Consecutively set bits are shown as two hyphen-separated decimal numbers, the smallest and largest bit numbers set in the range.

Returns 0 on success, -errno on invalid input strings: -EINVAL: second number in range smaller than first -EINVAL: invalid character in string -ERANGE: bit number specified too large for mask


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:01:58 GMT, October 09, 2005