Old loads

Top  Previous  Next

Ascertained, whether a number in a list by areas is enclosed.

It will hand over a list of areas in field. If the number exists in one of the areas, the function TRUE proves. Also TRUE arises if the pointer field is a zero pointer or if the field is empty, so in the first element 0 stands.

Parametre

value (short int) [IN]

A number whose occurence should be tested.

field (const short int *) [IN]

A list of values. In the index 0 stands the number of the values, in the field 1 and 2 the first area, in the field 3 and 4 the 2nd area, etc. Being 2 areas given, full so the fields from the 0 to the 4, the value 5 stands in index 0.

Result

(int) [OUT]

TRUE if the number value in the list appears.

FALSE if the list the value value does not contain.

Declaration

#include "basic.h"

 

int DLLENTRY SYSvalueIsInShortfield (

short int value,

const short int * field

);