sprintf(filename, "tests/%s/params%d", mode, num);
sprintf(filename, "%s/tests/%s/params%d", testdir, mode, num);
get_params(blapitestInfo *info, char *mode, int num){	SECItem *item;	/* XXX	 * this should use NSPR, but the string functions (strchr and atoi)	 * barf when the commented code below is used.	PRFileDesc *file;	*/	FILE *file;	char filename[32];	char *mark, *param, *val;	int index = 0;	int len;	sprintf(filename, "tests/%s/params%d", mode, num);	/*	file = PR_Open(filename, PR_RDONLY, 00440);	if (file)		SECU_FileToItem(item, file);	else		return;	param = (char *)item->data;	*/	file = fopen(filename, "r");	if (!file) return;	param = malloc(100);	len = fread(param, 1, 100, file);	while (index < len) {		mark = PL_strchr(param, '=');		*mark = '\0';		val = mark + 1;		mark = PL_strchr(val, '\n');		*mark = '\0';		if (PL_strcmp(param, "rounds") == 0) {			info->rounds = atoi(val);		} else if (PL_strcmp(param, "wordsize") == 0) {			info->wordsize = atoi(val);		}		index += PL_strlen(param) + PL_strlen(val) + 2;		param = mark + 1;	}}