DATAMANIP (ksegops) functions


LIBRARY ROUTINE

lkcpseg - copy segments from source to destination object

LIBRARY CALL

int 
lkcpseg(
   kobject source_object,
   char   *segment_list,
   kobject destination_object)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) if one copied, FALSE (0) if none copied

DESCRIPTION

This routine will copy from the source_object the segments specified by segment_list into the destination_object. Each segment's attributes and data will be copied into the destination_object. If segment_list is NULL it will copy all the segments in the object. The segment_list is a string that contains each segment name separated by space(s).

lkcpseg(source_object, "segment1 segment2", destination_object);

If the segment does not exist an error message is printed, but will not return until an attempt to copy all the segments specified has been done.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATAMANIP/objects/library/ksegops/src/lkcpseg.c

SEE ALSO

ksegops(3)

COPYRIGHT

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