Complete.Org: Mailing Lists: Archives: discussion: February 2000:
[aclug-L] Simple C question (which shows my C ignorance)
Home

[aclug-L] Simple C question (which shows my C ignorance)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Air Capital Linux Users Group <aclug-L@xxxxxxxxxxxx>
Subject: [aclug-L] Simple C question (which shows my C ignorance)
From: Larry Bottorff <mrprenzl@xxxxxxxxxx>
Date: Thu, 03 Feb 2000 01:12:05 -0600
Reply-to: aclug-L@xxxxxxxxxxxx

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




[Prev in Thread] Current Thread [Next in Thread]