ArgFind - Call SdsFind, but report any error using ErsRep.

Function

Call SdsFind, but report any error using ErsRep.

Description

This routine simply calls SdsFind, but if SdsFind returns a bad status, then this routine reports the name of the item SdsFind was trying to find.

Language

C

Declaration

void ArgFind(SdsIdType parent_id, char *name, SdsIdType *id, StatusType * status)

Parameters

(">" input, "!" modified, "W" workspace, "<" output)

>parent_idSdsIdTypeIdentifier of the structure.
>namechar*Name of the component to be found.
<idSdsIdType*Identifier to the component.
!statusStatusType*Modified status. Possible failure codes are:

SDS__NOMEM Insufficient memory for creation
SDS__NOTSTRUCT parent_id not a structure
SDS__NOITEM No item with that name

Support

Tony Farrell, {AAO}

See Also

SdsFind().

Version date

14-Apr-98

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tony.farrell@mq.edu.au