/*
bigint.c - Manage big positive integer numbers
- Copyright (c) 1996 Martin Schulze <joey@artis.uni-oldenburg.de>
+ Copyright (c) 1996,2001 Martin Schulze <joey@artis.uni-oldenburg.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
char form[6];
int i, max;
- bzero(s, sizeof(s));
+ memset (s, 0, sizeof(s));
sprintf(form, "%%0%dlu", BIGINT_PREC);
max = BIGINT_LEN;
for (;max>0 && !a.val[max-1];max--);
size_t dtaus_nextrec (void **buf, FILE *f)
{
- bzero (buf, 128);
+ memset (buf, 0, 128);
return fread(buf, 128, 1, f);
}
char *cp;
int i;
- bzero (line, sizeof(line));
- bzero (buf, len);
+ memset (line, 0, sizeof(line));
+ memset (buf, 0, len);
cp = line;
while (!strlen(line) && (cp = fgets(line, 100, f))) {
struct tm *loctime;
char tmp[10];
- bzero (buf, 129);
+ memset (buf, 0, 129);
timer = time ( NULL );
loctime = localtime(&timer);
int i;
int appendix = 0;
- bzero (buf, 257);
+ memset (buf, 0, 257);
if (normaltext)
appendix = 1;
{
int i;
- bzero (buf, 129);
+ memset (buf, 0, 129);
buf[0] = '0';
buf[1] = '1';
buf[2] = '2';
}
}
if (dtaus_nextrec(buf, fdtaus) != 1)
- bzero (buf, sizeof(buf));
+ memset (buf, 0, sizeof(buf));
/*
* Are there extension records that we have to check?
}
}
if (dtaus_nextrec(buf, fdtaus) != 1)
- bzero (buf, sizeof(buf));
+ memset (buf, 0, sizeof(buf));
extC--;
}
fprintf(fcontrol, "}\n");
/*
* Record A lesen
*/
- bzero(valA, sizeof(valA));
+ memset (valA, 0, sizeof(valA));
control_nextline ((void *)line, 100, fcontrol);
ident = extract_ident(line);
if (!strcmp(ident, "begin") && (line[0] == '{')) {
sum_val = bigint_int(0);
sum_blz = bigint_int(0);
sum_kto = bigint_int(0);
- bzero(valC, sizeof(valC));
+ memset (valC, 0, sizeof(valC));
control_nextline ((void *)line, 100, fcontrol);
if (line[0] == '{') {
while (strlen(line) && line[0] == '{') {
for (recindex=0; recindex<C_LEN; recindex++)
if (valC[recindex])
free(valC[recindex]);
- bzero(valC, sizeof(valC));
+ memset (valC, 0, sizeof(valC));
control_nextline ((void *)line, 100, fcontrol);
}
} else {