ra_free_attachinfo Subroutine
Purpose
Frees the memory allocated for the attachment information returned by ra_get_attachinfo.
Library
Standard C library (libc.a)
Syntax
#include <sys/rset.h>
int ra_free_attachinfo_t(info)
attachinfo_t *info;
Description
The ra_free_attachinfo subroutine frees the memory allocated by ra_get_attachinfo to contain the attachinfo_t structures returning the attachment information.
Parameters
Item | Description |
---|---|
info | Pointer to the attachinfo_t structure that was returned by a previous call to ra_get_attachinfo. |
Return Values
On successful
completion, a value of 0
is returned. Otherwise,
a value of -1
is returned and the errno global
variable is set to indicate the error.
Error Codes
The ra_free_attachinfo subroutine
is unsuccessful if the following is true:
Item | Description |
---|---|
EINVAL | The info parameter is a null pointer. |