+int sp_copy_port(const struct sp_port *port, struct sp_port **copy_ptr);
+
+ Makes a new copy of a sp_port structure. The user should allocate a variable
+ of type "struct sp_port *" and pass a pointer to this to receive the result.
+
+ The copy should be freed after use by calling sp_free_port().
+
+ Returns: SP_OK on success, SP_ERR_MEM on allocation failure, or SP_ERR_ARG
+ if an invalid port or pointer is passed. If any error is returned,
+ the variable pointed to by copy_ptr will be set to NULL. Otherwise,
+ it will be set to point to the newly allocated copy.
+