cc [flag ...] file ...-lwsreg [library ...] #include <wsreg.h>
The wsreg_clone_component() function clones the component specified by comp.
The wsreg_clone_component() returns a pointer to a component that is configured exactly the same as the component specified by comp.
The resulting component must be released through a call to wsreg_free_component() by the caller. See wsreg_create_component(3WSREG).
See attributes(5) for descriptions of the following attributes:
wsreg_create_component(3WSREG), wsreg_initialize(3WSREG), wsreg_get(3WSREG), attributes(5)