10 |
|
#include "copyright.h" |
11 |
|
|
12 |
|
#include <ctype.h> |
13 |
+ |
#include <string.h> |
14 |
|
#include <stdio.h> |
14 |
– |
#include <stdio.h> |
15 |
|
|
16 |
– |
#include "standard.h" |
16 |
|
#include "platform.h" |
17 |
+ |
#include "standard.h" |
18 |
|
#include "object.h" |
19 |
|
#include "otypes.h" |
20 |
|
|
165 |
|
|
166 |
|
void |
167 |
|
freeobjects(firstobj, nobjs) /* free a range of objects */ |
168 |
< |
OBJECT firstobj, nobjs; |
168 |
> |
int firstobj, nobjs; |
169 |
|
{ |
170 |
|
register int obj; |
171 |
|
/* check bounds */ |
181 |
|
free_os(o); /* free client memory */ |
182 |
|
freeqstr(o->oname); |
183 |
|
freefargs(&o->oargs); |
184 |
< |
bzero((void *)o, sizeof(OBJREC)); |
184 |
> |
memset((void *)o, '\0', sizeof(OBJREC)); |
185 |
|
} |
186 |
|
clearobjndx(); |
187 |
|
/* free objects off end */ |