int bone_destroy(BONEHANDLE bhnd)

Description
Destroys a Bone connection assosciated with the specified BONEHANDLE.

Callback
None (returns immediately)

Notes
The function parameter is the BONEHANDLE to destroy.

Example

BONEHANDLE bnd;
bnd = bone_create();
if (!bnd)
{
    printf("Unable to create BONEHANDLE.\n");
    exit(1);
}
else
{
    bone_login(bnd,"boneuser","bonepass");
}
if (bone_destroy(bnd))
    printf("Unable to destroy BONEHANDLE (reason %d).\n", bone_getlasterror());