3 #include <msvcrt/stdlib.h>
4 #include <msvcrt/string.h>
6 void _makepath(char *path, const char *drive, const char *dir, const char *fname, const char *ext)
10 if ((drive != NULL) && (*drive)) {
19 dir_len = strlen(dir);
20 if (dir_len && *(dir + dir_len - 1) != '\\')
26 if (ext != NULL && *ext != 0) {