home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lclint.zip
/
lclint-2_3h-os2-bin.zip
/
test
/
compdestroy.c
< prev
next >
Wrap
Text File
|
1997-09-03
|
398b
|
29 lines
typedef /*@only@*/ int *oip;
typedef /*@abstract@*/ struct
{
oip *ips;
int size;
} *sip;
void sip_free (/*@only@*/ sip x)
{
int i;
for (i = 0; i < x->size; i++)
{
free (x->ips[i]);
free (x->ips[i]);
}
free (x->ips);
free (x);
}
void sip_free2 (/*@only@*/ sip x)
{
free (x->ips); /* 1. Only storage *(x->ips) (type oip) derived from released */
free (x);
}