srv_reglistfree

Description

Free a previously allocated SRV_PROCLIST structure.

Syntax

CS_RETCODE srv_reglistfree(spp, proclistp)
SRV_PROC               *spp;
SRV_PROCLIST        *proclistp;

Parameters

spp

A pointer to an internal thread control structure.

proc_list

A pointer to a SRV_PROCLIST structure previously allocated by srv_reglist or srv_regwatchlist.

Returns

Table 3-99: Return values (srv_reglistfree)

Returns

To indicate

CS_SUCCEED

The routine completed successfully.

CS_FAIL

The routine failed.

Examples

Example 1

#include    <ospublic.h>

/*
** Local Prototype
*/
CS_RETCODE      ex_srv_reglistfree PROTOTYPE((
SRV_PROC        *srvproc,
SRV_PROCLIST    *reglistp
));

/* 
** EX_SRV_REGLISTFREE
**
**   Example routine to free a previously allocated reglist.
**
** Arguments:
**  srvproc    A pointer to an internal thread control structure. 
**  reglistp   A pointer to the list to free.
**
** Returns:
**
**    CS_SUCCEED
**    CS_FAIL
*/
CS_RETCODE      ex_srv_reglistfree(srvproc, reglistp)
SRV_PROC        *srvproc;
SRV_PROCLIST    *reglistp;
{
       return(srv_reglistfree(srvproc, reglistp));
}

Usage

srv_reglistfree deallocates a SRV_PROCLIST structure allocated by srv_reglist or srv_regwatchlist.

See also

srv_reglist, srv_regwatchlist