DATAMANIP (kdatamanip) functions


LIBRARY ROUTINE

lkgconst - set value segment of a data object to a constant

LIBRARY CALL

int lkgconst(
   int     wsize,
   int     hsize,
   int     dsize,
   int     tsize,
   int     esize,
   double  real,
   double  imaginary,
   int     datatype,
   kobject object)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) on success, FALSE (0) on failure

DESCRIPTION

Library Routine for kgconst. lkgconst creates a constant valued value segment for the destination data object. The resulting data size is specified by the wsize, hsize, dsize, tsize, and esize parameters. The data type of the value segment is specified by the datatype parameter, and can be KBIT, KBYTE, KUBYTE, KSHORT, KUSHORT, KINT, KUINT, KLONG, KULONG, KFLOAT, KDOUBLE, KCOMPLEX and KDCOMPLEX. The value segment will be set to the real and imaginary constant levels specified by the "real" and "imaginary" parameters.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

If the value segment already exists, then all data in the segment will be overwritten with the constant value in the data type specified in the function call and the size will be changed to the specfied wsize, hsize, dsize, tsize and esize.

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATAMANIP/objects/library/kdatamanip/src/lkgconst.c

SEE ALSO

kdatamanip(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.