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 _splitpath_s(f, d, dl, p, pl, n, nl, e, el)
errno_t __cdecl _set_errno(_In_ int _Value)
GLsizei const GLchar ** path
GLuint GLuint GLsizei count
#define _CRTIMP_ALTERNATIVE
#define _Analysis_assume_(expr)
#define MSVCRT_CHECK_PMT(x)
#define _Check_return_wat_
_CRTIMP void __cdecl _tsplitpath_x(_In_z_ const _TCHAR *path, _Pre_maybenull_ _Post_z_ _TCHAR *drive, _Pre_maybenull_ _Post_z_ _TCHAR *dir, _Pre_maybenull_ _Post_z_ _TCHAR *fname, _Pre_maybenull_ _Post_z_ _TCHAR *ext)
#define _Out_writes_opt_z_(size)
#define _CRT_INSECURE_DEPRECATE(_Replacement)
int __cdecl _ismbblead(unsigned int)