2. op_close_agent

Uninitialize the agent library.
#include <opagent.h>
int op_close_agent(hdl); 
op_agent_t hdl;


Frees all resources and closes open file handles.


hdl : Handle returned from an earlier call to op_open_agent()

Return value

Returns 0 on success; -1 otherwise. If -1 is returned, errno is set to indicate the nature of the error. errno is set to EINVAL if an invalid op_agent_t handle is passed. For a list of other possible errno values, see the man pages for:

gettimeofday, fwrite