23 _In_ size_t drive_size,
27 _In_ size_t fname_size,
46 const _TCHAR *
src, *dir_start, *file_start = 0, *ext_start = 0;
57 ((
dir !=
NULL) && (dir_size == 0)) ||
58 ((fname !=
NULL) && (fname_size == 0)) ||
69 if (fname) fname[0] =
'\0';
87 if ((
path[0] ==
'\\') && (
path[1] ==
'\\') &&
96 if (
drive && (drive_size >= 3))
107 while (*
path !=
'\0')
109#if !defined(_UNICODE) && !defined(_LIBCNT_)
114 if (
path[1] == 0)
break;
122 if ((*
path ==
'\\') || (*
path ==
'/')) file_start =
path + 1;
129 file_start = dir_start;
130 if (!ext_start || (ext_start < file_start))
136 count = dir_size - 1;
144 count = fname_size - 1;
145 while (
src < ext_start &&
count--) *fname++ = *
src++;
#define _CRTIMP_ALTERNATIVE
#define _CRT_INSECURE_DEPRECATE(_Replacement)
#define _Check_return_wat_
static const WCHAR *const ext[]
GLuint GLuint GLsizei count
#define _splitpath_s(f, d, dl, p, pl, n, nl, e, el)
#define MSVCRT_CHECK_PMT(x)
int __cdecl _ismbblead(unsigned int)
#define _Out_writes_opt_z_(size)
#define _Analysis_assume_(expr)
errno_t __cdecl _set_errno(_In_ int _Value)