inpm_bb()

Purpose

General bit input function

Syntax

int inpm_bb(flag, bit, ask)

Parameters

short* flag

Pointer to short integer containing bit to be edited

 

int bit

Bit in flag to be edited

 

int ask

Determines whether the function should stop for input

Description

The inpm_bb() function is a general input function for editing bit fields. If the value of (ask & 1) equals TRUE, it behaves like the function inpm_b(). Otherwise the function does not stop.

If (ask & 4) is not equal to TRUE, the bit can be changed.

If the value of (ask & 2) equals TRUE, it causes the bit to be set, otherwise it is unset. The function inpm_omit() is then called to move to the next field.

Return values

Returns the value of the global variable abort_code

See also

inpm_b()