IDS_ADD_SDS(3)
NAME
ids_add_sds - adds an SDS to the end of the sds list in
IDS.
SYNOPSIS
int ids_add_sds(IDS *ids, SDS *sds);
DESCRIPTION
Adds the SDS to the end of the sdslist in IDS. If there
wasn't any list, a new list is created, and the SDS will be
the first.
Note that this copies only the pointer, and NOT the SDS
itself, so this function assumes that you have already allo-
cated space for the SDS.
The SDS should have the same dimensions as the existing SDSs
in the list.
KEYWORDS
RETURN VALUES
Returns -1 on error, 0 otherwise.
EXAMPLES
IDS *my_ids;
SDS *one_more_sds;
.
.
.
one_more_sds = sds_get_one_fits("xxx.fits");
status = ids_add_sds(my_ids, one_more_sds);
SEE ALSO
ids_delete_sds, ids_insert_sds
WARNINGS
This function doesn't check that the dimensions of the new
SDS agree with the existing SDSs.
FILES
BUGS
None
RESTRICTIONS
None
PLANNED IMPROVEMENTS
None
REFERENCES
None
VERSION
1994-02-24 Lup Ng SOI Version 0.8