Indented with src/scripts/indent-emp.
This commit is contained in:
parent
5f263a7753
commit
9b7adfbecc
437 changed files with 52211 additions and 51052 deletions
|
@ -40,35 +40,35 @@
|
|||
s_char *
|
||||
numstr(s_char *buf, int n)
|
||||
{
|
||||
extern s_char *numnames[];
|
||||
extern s_char *tennames[];
|
||||
extern s_char *numnames[];
|
||||
extern s_char *tennames[];
|
||||
|
||||
if (n > 100) {
|
||||
(void) strcpy(buf, "several");
|
||||
} else if (n < 0) {
|
||||
(void) strcpy(buf, "a negative number of");
|
||||
if (n > 100) {
|
||||
(void)strcpy(buf, "several");
|
||||
} else if (n < 0) {
|
||||
(void)strcpy(buf, "a negative number of");
|
||||
} else {
|
||||
if (n >= 20) {
|
||||
(void)strcpy(buf, tennames[n / 10]);
|
||||
if (n % 10) {
|
||||
(void)strcat(buf, "-");
|
||||
(void)strcat(buf, numnames[n % 10]);
|
||||
}
|
||||
} else {
|
||||
if (n >= 20) {
|
||||
(void) strcpy(buf, tennames[n / 10]);
|
||||
if (n % 10) {
|
||||
(void) strcat(buf, "-");
|
||||
(void) strcat(buf, numnames[n % 10]);
|
||||
}
|
||||
} else {
|
||||
(void) strcpy(buf, numnames[n % 20]);
|
||||
}
|
||||
(void)strcpy(buf, numnames[n % 20]);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
s_char *
|
||||
effadv(int n)
|
||||
{
|
||||
extern s_char *effadv_list[];
|
||||
extern s_char *effadv_list[];
|
||||
|
||||
if (n < 0)
|
||||
n = 0;
|
||||
if (n >= 100)
|
||||
n = 99;
|
||||
return effadv_list[n/25];
|
||||
if (n < 0)
|
||||
n = 0;
|
||||
if (n >= 100)
|
||||
n = 99;
|
||||
return effadv_list[n / 25];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue