c_pxfill - Fills a data buffer with a specified value

SYNTAX

#include "worgen.h"

FUNCTION c_pxfill (tobuf, dtype, ns, fillval);

     unsigned char          *tobuf;
     long                   *dtype;
     long                   *ns;
     unsigned char          *fillval;

PARAMETERS

tobuf (output, 'dtype')

The buffer to be filled with fillval.

dtype (input, integer)

An integer representing the data type of the fill value. Legal values include the following:

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     four byte floating point data

ns (input, integer)

The number of elements or pixels to be filled.

fillval (input, 'dtype')

The fill value for the buffer. The fill value must be the same data type as the buffer.

DESCRIPTION

The c_pxfill() call is used to fill ns pixels of buffer tobuf with constant value fillval of type dtype.

RETURN VALUE

c_pxfill() has no return values.