moved test2file() to util.c

This commit is contained in:
Daniel Stenberg 2005-09-15 20:22:43 +00:00
parent 97a6d7b1a8
commit 9542dfdcdc
3 changed files with 20 additions and 14 deletions

View file

@ -144,3 +144,13 @@ void win32_cleanup(void)
}
#endif
/* set by the main code to point to where the test dir is */
const char *path=".";
char *test2file(long testno)
{
static char filename[256];
snprintf(filename, sizeof(filename), TEST_DATA_PATH, path, testno);
return filename;
}