c_pxcopy - Copies from one data buffer to another

SYNTAX

#include "worgen.h"

FUNCTION c_pxcopy (frombuf, tobuf, dtype, ns)

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

PARAMETERS

frombuf (input, 'dtype')

The source buffer of the data to be copied.

tobuf (output, 'dtype')

The destination buffer of the data to be copied.

dtype (input, integer)

An integer representing the data type of the source and destination buffers. Legal values include the following:

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

ns (input, integer)

The number of elements or pixels to be converted or copied.

DESCRIPTION

The c_pxcopy() call is used to copy ns pixels of dtype from frombuf to tobuf.

RETURN VALUE

c_pxcopy() has no return values.