next up previous contents index
Next: 11.4 Memory Interface Up: 11.3 C Library Environment Previous: 11.3.6 sleep_initsleep, wakeup:

11.3.7 clone: Make a copy of an oskit_libcenv object

 

SYNOPSIS

#include <oskit/com/libcenv.h>

oskit_error_t oskit_libcenv_clone(oskit_libcenv_t *c, oskit_libcenv_t **out_intf);

DESCRIPTION

Make a copy of the oskit_libcenv object in c. All of the reference counts on the internal objects are adjusted, and a new oskit_libcenv object is returned in out_intf. The new object may then modified without affecting the original object.

PARAMETERS

c
The oskit_libcenv object to operate on.
out_intf
The new oskit_libcenv object to return.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group