int user_cost, comp_cost;
char *p;
- (void) bzero ((char *)counts, sizeof (counts));
+ (void) memset ((char *)counts, '\0', sizeof (counts));
for (i = 0; i < MAP_SIZE; i++) {
p = strchr (pieces, mbuf[i]);
void
vmap_cont (int *cont_map, view_map_t *vmap, loc_t loc, char bad_terrain)
{
- (void) bzero ((char *)cont_map, MAP_SIZE * sizeof (int));
- vmap_mark_up_cont (cont_map, vmap, loc, bad_terrain);
+ (void) memset ((char *)cont_map, '\0', MAP_SIZE * sizeof (int));
+ vmap_mark_up_cont (cont_map, vmap, loc, bad_terrain);
}
/*
void
rmap_cont(int *cont_map, loc_t loc, char bad_terrain)
{
- (void) bzero ((char *)cont_map, MAP_SIZE * sizeof (int));
+ (void) memset ((char *)cont_map, '\0', MAP_SIZE * sizeof (int));
rmap_mark_up_cont (cont_map, loc, bad_terrain);
}
scan_counts_t counts;
count_t i;
- (void) bzero ((char *)&counts, sizeof (scan_counts_t));
+ (void) memset ((char *)&counts, '\0', sizeof (scan_counts_t));
for (i = 0; i < MAP_SIZE; i++) {
if (cont_map[i]) { /* cell on continent? */
scan_counts_t counts;
count_t i;
- (void) bzero ((char *)&counts, sizeof (scan_counts_t));
+ (void) memset ((char *)&counts, '\0', sizeof (scan_counts_t));
for (i = 0; i < MAP_SIZE; i++) {
if (cont_map[i]) { /* cell on continent? */
count_t i;
long copied;
- (void) bzero (pmap, sizeof (pmap));
+ (void) memset (pmap, '\0', sizeof (pmap));
from = &p1;
to = &p2;
from->len = 0;
loc_t new_loc, xloc;
int hit_loc[8];
- (void) bzero ((char *)hit_loc, sizeof(int)*8);
+ (void) memset ((char *)hit_loc, '\0', sizeof(int)*8);
FOR_ADJ_ON (loc, new_loc, i) {
FOR_ADJ_ON (new_loc, xloc, j)