Complete.Org:
Mailing Lists:
Archives:
discussion:
February 2000: [aclug-L] Simple C question (which shows my C ignorance) |
[aclug-L] Simple C question (which shows my C ignorance)[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I need to delete a member of an array of structure pointers and have the new situation reflected minus the one removed. Can I just do free(array1[i]), then decrement the index counter, or do I need to shift everything down? The members were allocated with malloc, and I'm lost. Any ideas? -- Larry Bottorff / mrprenzl@xxxxxxxxxx / 316.345.3387
|