### The ds_shutdown( ) Function Call

The ds_shutdown( ) call deletes the workspace established by ds_initialize( ) and enables the directory service to release resources. No other directory functions that reference that workspace may be called after this function.

The following code fragment from acl.c demonstrates how the application closes the directory workspace by performing a ds_shutdown( ) call.

/* Close the directory workspace. */

if (ds_shutdown (workspace) != DS_SUCCESS)

printf ("ds_shutdown() error \n");

##