c_getival - Return the integer value(s) from a space delimited string

SYNTAX

#include "notae.h"

FUNCTION c_getival( valuestring, max, numspec, output )

    char    *valuestring;
    long    max;
    long    *numspec;
    long    *output;
    

PARAMETERS

valuestring( input, character string )

Space delimited string of integer values.

max( input, integer )

The maximum number of values to extract from valuestring.

numspec( output, integer )

The actual number of values extracted from valuestring.

output( output, array of integers )

The values extracted from valuestring and converted to integers.

DESCRIPTION

Up to max values are extracted from valuestring using strtol(). The values are returned in output.

RETURN VALUE

    E_SUCC (0)  --> success
    E_FAIL (-1) --> failure