/* for libraries we can use the low-level close routines */
ffclose(fp);
seed = time(NULL);
- *cqnum = nhlp*rando(&seed);
+ *cqnum = static_cast<int>(nhlp*rando(&seed));
if (strlen(help[*cqnum]) >= STRLEN)
{
help[*cqnum][STRLEN-1] = '\0';
}
else
{
+ *cqnum = -1;
strncpy(retstring, defstring, retsize);
}
}
void cool_quote(char *retstring, int retsize, int *cqnum)
{
char *tmpstr;
- char *s, *ptr;
+ char *ptr;
int tmpcq, *p;
if (cqnum != NULL)
void gmx_thanx(FILE *fp)
{
char cq[1024];
- int cqnum;
+ int cqnum = -1;
/* protect the audience from suggestive discussions */
cool_quote(cq, 1023, &cqnum);
- if (be_cool())
+ if (cqnum >= 0)
{
fprintf(fp, "\ngcq#%d: %s\n\n", cqnum, cq);
}
};
#define NSTR (int)asize(citedb)
- int j, index;
+ int index;
char *author;
char *title;
#define LINE_WIDTH 79