Ignore:
Timestamp:
2002-01-30T15:40:53+13:00 (22 years ago)
Author:
jrm21
Message:

replaced bzero and bcopy with memset and memcpy in the src, even though it was
already done in the headers, just to make the code a bit clearer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/mgpp_compression_dict.cpp

    r2557 r2928  
    435435  escape[0] = 0;
    436436  escape[1] = 0;
    437   bzero ((char *) char_freqs, sizeof (char_freqs));
    438   bzero ((char *) len_freqs, sizeof (len_freqs));
     437  memset (char_freqs, '\0', sizeof (char_freqs));
     438  memset (len_freqs, '\0', sizeof (len_freqs));
    439439  for (i = 0; i < num; i++, wd++)
    440440    {
     
    807807
    808808
    809   bzero ((char *) &huff_words_size, sizeof (huff_words_size));
    810   bzero ((char *) &lencounts, sizeof (lencounts));
     809  memset (&huff_words_size, '\0', sizeof (huff_words_size));
     810  memset (&lencounts, '\0', sizeof (lencounts));
    811811
    812812  mem_reqd = 0;
     
    873873  huff_data *hd;
    874874
    875   bzero ((char *) freqs, sizeof (freqs));
     875  memset (freqs, '\0', sizeof (freqs));
    876876
    877877  for (j = 0; j < dd->num_wds; j++, wd++)
     
    909909  huff_data *hd;
    910910
    911   bzero ((char *) freqs, sizeof (freqs));
     911  memset (freqs, '\0', sizeof (freqs));
    912912
    913913  for (j = 0; j < dd->num_wds; j++, wd++)
     
    943943           MAGIC_DICT, MG_ABORT);  /* [RPAP - Feb 97: WIN32 Port] */
    944944
    945   bzero((char *) &cdh, sizeof(cdh));
     945  memset (&cdh, '\0', sizeof(cdh));
    946946
    947947  cdh.dict_type = type;
Note: See TracChangeset for help on using the changeset viewer.