IDS_DELETE_SDS(3)



NAME

     ids_delete_sds -  deletes an SDS to the end of the sds  list
     in IDS.



SYNOPSIS

          int ids_delete_sds(IDS *ids, int n);



DESCRIPTION

     Deletes the SDS to the nth position of the sdslist in IDS.

     This function doesn't return you the pointer to the SDS  you
     removed.  Use ids_nth_sds to retrieve a particular SDS.



KEYWORDS


RETURN VALUES

     Returns -1 on error, 0 otherwise.



EXAMPLES

          IDS *my_ids;
              .
              .
              .
          middle = ids_length(my_ids)/2;
          status = ids_delete_sds(my_ids, middle);



SEE ALSO

     ids_add_sds, ids_insert_sds, ids_nth_sds


WARNINGS

     None


FILES

     TBA


BUGS

     The deletion doesn't free the "deleted" SDS.  It frees  only
     the pointer and leaves the SDS "hanging."



RESTRICTIONS

     None


PLANNED IMPROVEMENTS

     The bug is to be fixed very soon.


REFERENCES

     None


VERSION

     1994-02-24     Lup Ng    SOI Version 0.8